mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
44 lines
2.6 KiB
Plaintext
44 lines
2.6 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * operators/operator_sdk/osdk-multi-arch-support.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="osdk-multi-arch-validate_{context}"]
|
|
= Validating your Operator's multi-platform readiness
|
|
|
|
You can validate your Operator's multi-platform readiness by running the `bundle validate` command. The command verifies that your Operator project meets the following conditions:
|
|
|
|
* Your Operator's manager image supports the platforms labeled in the cluster service version (CSV) file.
|
|
* Your Operator's CSV has labels for the supported platforms for Operator Lifecycle Manager (OLM) and OperatorHub.
|
|
|
|
.Procedure
|
|
|
|
* Run the following command to validate your Operator project for multiple architecture readiness:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ operator-sdk bundle validate ./bundle \
|
|
--select-optional name=multiarch
|
|
----
|
|
+
|
|
.Example validation message
|
|
[source,text]
|
|
----
|
|
INFO[0020] All validation tests have completed successfully
|
|
----
|
|
+
|
|
.Example error message for missing CSV labels in the manager image
|
|
[source,text]
|
|
----
|
|
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]
|
|
----
|
|
+
|
|
.Example error message for missing OperatorHub flags
|
|
[source,text]
|
|
----
|
|
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
|
|
----
|