-
Notifications
You must be signed in to change notification settings - Fork 12
AM0003
sugarraysam edited this page Dec 28, 2021
·
2 revisions
1. operatorName does not match either csv.Name or csv.Replaces
# addon.yaml
operatorName: rhods-operator
# manifests/rhods-operator.X.Y.Z.clusterserviceversion.yaml (bundle X.Y.Z)
metadata:
name: invalid.X.Y.Z
spec:
replaces: invalid.X.Y.ZThe operatorName has to match the first part of both metadata.name and spec.replaces for all CSV of all bundles.
2. operatorName does not match the package bundle annotation
# addon.yaml
operatorName: rhods-operator
# metadata/annotations.yaml (bundle X.Y.Z)
annotations:
operators.operatorframework.io.bundle.package.v1: invalidFor all bundles, the operators.operatorframework.io.bundle.package.v1 has to match the value of operatorName. This is how OLM can find and install the desired operator from your catalog.
# addon.yaml
operatorName: rhods-operator
# manifests/rhods-operator.X.Y.Z.clusterserviceversion.yaml (bundle X.Y.Z)
metadata:
name: rhods-operator.X.Y.Z
spec:
replaces: rhods-operator.X.Y.Z
# metadata/annotations.yaml (bundle X.Y.Z)
annotations:
operators.operatorframework.io.bundle.package.v1: rhods-operator-
operatorNamematches first part ofmetadata.nameandspec.replacesin CSV manifest -
operatorNamematches theoperators.operatorframework.io.bundle.package.v1bundle annotation