5.12.4. Operator의 멀티 플랫폼 준비 상태 확인
bundle validate 명령을 실행하여 Operator의 멀티 플랫폼 준비 상태를 확인할 수 있습니다. 이 명령은 Operator 프로젝트가 다음 조건을 충족하는지 확인합니다.
- Operator의 관리자 이미지는 CSV(클러스터 서비스 버전) 파일에 레이블이 지정된 플랫폼을 지원합니다.
- Operator의 CSV에는 OLM(Operator Lifecycle Manager) 및 OperatorHub에 지원되는 플랫폼에 대한 라벨이 있습니다.
프로세스
다음 명령을 실행하여 Operator 프로젝트의 여러 아키텍처 준비 상태를 확인합니다.
$ operator-sdk bundle validate ./bundle \ --select-optional name=multiarch검증 메시지의 예
INFO[0020] All validation tests have completed successfully관리자 이미지에서 CSV 라벨이 누락된 오류 메시지의 예
ERRO[0016] Error: Value test-operator.v0.0.1: not all images specified are providing the support described via the CSV labels. Note that (SO.architecture): (linux.ppc64le) was not found for the image(s) [quay.io/example-org/test-operator:v1alpha1] ERRO[0016] Error: Value test-operator.v0.0.1: not all images specified are providing the support described via the CSV labels. Note that (SO.architecture): (linux.s390x) was not found for the image(s) [quay.io/example-org/test-operator:v1alpha1] ERRO[0016] Error: Value test-operator.v0.0.1: not all images specified are providing the support described via the CSV labels. Note that (SO.architecture): (linux.amd64) was not found for the image(s) [quay.io/example-org/test-operator:v1alpha1] ERRO[0016] Error: Value test-operator.v0.0.1: not all images specified are providing the support described via the CSV labels. Note that (SO.architecture): (linux.arm64) was not found for the image(s) [quay.io/example-org/test-operator:v1alpha1]OperatorHub 플래그 누락된 오류 메시지의 예
WARN[0014] Warning: Value test-operator.v0.0.1: check if the CSV is missing the label (operatorframework.io/arch.<value>) for the Arch(s): ["amd64" "arm64" "ppc64le" "s390x"]. Be aware that your Operator manager image ["quay.io/example-org/test-operator:v1alpha1"] provides this support. Thus, it is very likely that you want to provide it and if you support more than amd64 architectures, you MUST,use the required labels for all which are supported.Otherwise, your solution cannot be listed on the cluster for these architectures