File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ IMAGE_NAME?=network-operator
5050CONTROLLER_IMAGE =$(REGISTRY ) /$(IMAGE_NAME )
5151IMAGE_BUILD_OPTS? =
5252BUNDLE_IMG? =network-operator-bundle:$(VERSION )
53+ BUNDLE_OCP_VERSIONS? =v4.15-v4.18
5354# BUNDLE_GEN_FLAGS are the flags passed to the operator-sdk generate bundle command
5455BUNDLE_GEN_FLAGS ?= -q --overwrite --version $(VERSION ) $(BUNDLE_METADATA_OPTS )
5556BUILD_ARCH = amd64 arm64
@@ -406,7 +407,7 @@ bundle: $(OPERATOR_SDK) $(KUSTOMIZE) manifests ## Generate bundle manifests and
406407 cd config/manager && $(KUSTOMIZE ) edit set image controller=$(TAG )
407408 $(KUSTOMIZE ) build config/manifests | $(OPERATOR_SDK ) generate bundle $(BUNDLE_GEN_FLAGS )
408409 git checkout -- config/manager/kustomization.yaml
409- GO=$(GO ) TAG=$(TAG ) hack/scripts/ocp-bundle-postprocess.sh
410+ GO=$(GO ) BUNDLE_OCP_VERSIONS= $( BUNDLE_OCP_VERSIONS ) TAG=$(TAG ) hack/scripts/ocp-bundle-postprocess.sh
410411 $(OPERATOR_SDK ) bundle validate ./bundle
411412
412413.PHONY : bundle-build
Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ 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
Original file line number Diff line number Diff line change @@ -35,3 +35,5 @@ rm hack/related_images.yaml
3535# Escape the tag annotation value for sed
3636ESCAPED_TAG=$( printf ' %s\n' " $TAG " | sed -e ' s/[]\/$*.^[]/\\&/g' )
3737sed -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
You can’t perform that action at this time.
0 commit comments