Skip to content

Commit ce9e8df

Browse files
committed
Update bundle annotations to include must-gather image
Since we have a must-gather image, we should advertise that information through the bundle. We typically do this using `RELATED_IMAGES`, which the operator uses to find container images it needs to do things like profile parsing or scanning. While we can use `RELATED_IMAGES` for the must-gather image, the Compliance Operator doesn't use the must-gather image directly. Instead, we can put it in the annotation of the bundle CSV, so it's still discoverable to users, while not polluting the operator environment with variables it doesn't need.
1 parent 81a46a1 commit ce9e8df

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

bundle/manifests/compliance-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ metadata:
160160
]
161161
capabilities: Seamless Upgrades
162162
categories: Monitoring,Security
163+
must-gather-image: ghcr.io/complianceascode/must-gather-ocp:latest
163164
olm.skipRange: '>=0.1.17 <1.5.0'
164165
operatorframework.io/cluster-monitoring: "true"
165166
operatorframework.io/suggested-namespace: openshift-compliance

config/manifests/bases/compliance-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ metadata:
160160
]
161161
capabilities: Seamless Upgrades
162162
categories: Monitoring,Security
163+
must-gather-image: ghcr.io/complianceascode/must-gather-ocp:latest
163164
olm.skipRange: '>=0.1.17 <1.5.0'
164165
operatorframework.io/cluster-monitoring: "true"
165166
operatorframework.io/suggested-namespace: openshift-compliance

0 commit comments

Comments
 (0)