This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.5.8.2. 스코어 카드 구성
스코어 카드 툴에서는 내부 플러그인과 여러 글로벌 구성 옵션을 구성할 수 있는 구성 파일을 사용합니다.
5.8.2.1. 설정 파일
스코어 카드 도구 구성의 기본 위치는 <project_dir>/.osdk-scorecard.*
입니다. 다음은 YAML 형식의 구성 파일의 예입니다.
스코어 카드 구성 파일
scorecard: output: json plugins: - basic: 1 cr-manifest: - "deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml" - "deploy/crds/cache.example.com_v1alpha1_memcachedrs_cr.yaml" - olm: 2 cr-manifest: - "deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml" - "deploy/crds/cache.example.com_v1alpha1_memcachedrs_cr.yaml" csv-path: "deploy/olm-catalog/memcached-operator/0.0.3/memcached-operator.v0.0.3.clusterserviceversion.yaml"
글로벌 옵션에 대한 구성 방법은 가장 높은 우선 순위에서 가장 낮은 우선 순위를 사용합니다.
명령 인수 (사용 가능한 경우)
구성 파일은 YAML 형식이어야 합니다. 향후 모든 operator-sdk
하위 명령의 구성을 허용하도록 구성 파일을 확장할 수 있으므로 스코어 카드 구성은 스코어 카드 하위 섹션
아래 있어야 합니다.
구성 파일 지원은 viper
패키지에서 제공합니다. viper
설정의 작동 방식에 대한 자세한 내용은 README 를 참조하십시오.