Skip to content

Commit 836e965

Browse files
committed
feat: rhcos os-version change no longer requires an annotation for OCP catalog bundle
Signed-off-by: Michael Zeevi <[email protected]>
1 parent 90d9e7b commit 836e965

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ IMAGE_NAME?=network-operator
4949
CONTROLLER_IMAGE=$(REGISTRY)/$(IMAGE_NAME)
5050
IMAGE_BUILD_OPTS?=
5151
BUNDLE_IMG?=network-operator-bundle:$(VERSION)
52-
BUNDLE_OCP_VERSIONS?=v4.15-v4.18
5352
# BUNDLE_GEN_FLAGS are the flags passed to the operator-sdk generate bundle command
5453
BUNDLE_GEN_FLAGS ?= -q --overwrite --version $(VERSION) $(BUNDLE_METADATA_OPTS)
5554
BUILD_ARCH= amd64 arm64
@@ -404,7 +403,7 @@ bundle: $(OPERATOR_SDK) $(KUSTOMIZE) manifests ## Generate bundle manifests and
404403
cd config/manager && $(KUSTOMIZE) edit set image controller=$(TAG)
405404
$(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle $(BUNDLE_GEN_FLAGS)
406405
git checkout -- config/manager/kustomization.yaml
407-
GO=$(GO) BUNDLE_OCP_VERSIONS=$(BUNDLE_OCP_VERSIONS) TAG=$(TAG) hack/scripts/ocp-bundle-postprocess.sh
406+
GO=$(GO) TAG=$(TAG) hack/scripts/ocp-bundle-postprocess.sh
408407
$(OPERATOR_SDK) bundle validate ./bundle
409408

410409
.PHONY: bundle-build

bundle/metadata/annotations.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ annotations:
1313
# Annotations for testing.
1414
operators.operatorframework.io.test.mediatype.v1: scorecard+v1
1515
operators.operatorframework.io.test.config.v1: tests/scorecard/
16-
com.redhat.openshift.versions: v4.15-v4.18

hack/scripts/ocp-bundle-postprocess.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,3 @@ rm hack/related_images.yaml
3535
# Escape the tag annotation value for sed
3636
ESCAPED_TAG=$(printf '%s\n' "$TAG" | sed -e 's/[]\/$*.^[]/\\&/g')
3737
sed -i "0,/annotations:/s/annotations:/annotations:\n containerImage: $ESCAPED_TAG/" bundle/manifests/nvidia-network-operator.clusterserviceversion.yaml
38-
# Add OpenShift versions in metadata/annotations.yaml
39-
echo " com.redhat.openshift.versions: $BUNDLE_OCP_VERSIONS" >> bundle/metadata/annotations.yaml

0 commit comments

Comments
 (0)