33# To re-generate a bundle for another specific version without changing the standard setup, you can:
44# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
55# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
6- VERSION ?= 1.3.1
6+ VERSION ?= 1.3.2
77OPERATOR_SDK_RELEASE_VERSION ?= v1.27.0
88
99# CHANNELS define the bundle channels used in the bundle.
@@ -154,7 +154,7 @@ kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.
154154$(KUSTOMIZE ) : $(LOCALBIN )
155155 test -s $(LOCALBIN ) /kustomize || curl -s $(KUSTOMIZE_INSTALL_SCRIPT ) | bash -s $(KUSTOMIZE_VERSION ) $(LOCALBIN )
156156
157- CONTROLLER_TOOLS_VERSION ?= 0.10.0
157+ CONTROLLER_TOOLS_VERSION ?= 0.11.4
158158.PHONY : controller-gen
159159controller-gen : $(CONTROLLER_GEN ) # # Download controller-gen locally if necessary.
160160$(CONTROLLER_GEN ) : $(LOCALBIN )
@@ -303,30 +303,6 @@ rm -rf $$TMP_DIR ;\
303303}
304304endef
305305
306- .PHONY : opm
307- OPM = ./bin/opm
308- opm : # # Download opm locally if necessary.
309- ifeq (,$(wildcard $(OPM ) ) )
310- ifeq (,$(shell which opm 2>/dev/null) )
311- @{ \
312- set -e ;\
313- mkdir -p $(dir $(OPM)) ;\
314- OS=$(shell go env GOOS) && ARCH=$(shell go env GOARCH) && \
315- curl -sSLo $(OPM) https://github.com/operator-framework/operator-registry/releases/download/v1.15.1/$${OS}-$${ARCH}-opm ;\
316- chmod +x $(OPM) ;\
317- }
318- else
319- OPM = $(shell which opm)
320- endif
321- endif
322-
323- # Build a catalog image by adding bundle images to an empty catalog using the operator package manager tool, 'opm'.
324- # This recipe invokes 'opm' in 'semver' bundle add mode. For more information on add modes, see:
325- # https://github.com/operator-framework/community-operators/blob/7f1438c/docs/packaging-operator.md#updating-your-existing-operator
326- .PHONY : catalog-build
327- catalog-build : opm # # Build a catalog image.
328- $(OPM ) index add $(SKIP_TLS_VERIFY ) --container-tool $(CONTAINER_COMMAND ) --mode semver --tag $(CATALOG_IMG ) --bundles $(BUNDLE_IMGS ) $(FROM_INDEX_OPT ) --permissive
329-
330306kind-e2e-test :
331307 ./operators/scripts/test/e2e-kind.sh --test-tag " ${BUILD_NUMBER} "
332308
@@ -342,8 +318,8 @@ build-manifest-pipeline:
342318build-bundle-pipeline :
343319 ./operators/scripts/build/build-bundle.sh --prod-image " ${PIPELINE_PRODUCTION_IMAGE} " --registry " ${REGISTRY} " --image " ${PIPELINE_OPERATOR_IMAGE} " --tag " ${RELEASE_TARGET} "
344320
345- build-catalog-pipeline : opm # # Build a catalog image.
346- ./operators/scripts/build/build-catalog.sh -n " v ${OPM_VERSION} " -b " ${REDHAT_BASE_IMAGE} " -o " ${OPM } " --container-tool " docker " -r " ${REGISTRY} " -i " ${PIPELINE_OPERATOR_IMAGE} -bundle: ${RELEASE_TARGET} " -p " ${PIPELINE_PRODUCTION_IMAGE} -bundle " -a " ${PIPELINE_OPERATOR_IMAGE} -catalog: ${ RELEASE_TARGET}" -t " ${PWD} /operator-build " -v " ${VERSION} "
321+ build-catalog-pipeline :
322+ ./operators/scripts/build/build-catalog.sh --prod-image " ${OPERATOR_IMAGE } " --registry " ${REGISTRY} " --image " ${PIPELINE_OPERATOR_IMAGE} " --tag " ${RELEASE_TARGET} " --version " ${VERSION} "
347323
348324test-e2e :
349325 ./scripts/e2e-release.sh --registry-name default-route --registry-namespace openshift-image-registry \
@@ -360,9 +336,6 @@ bundle-build-podman:
360336bundle-push-podman :
361337 podman push --format=docker " ${BUNDLE_IMG} "
362338
363- build-catalog :
364- opm index add --bundles " ${BUNDLE_IMG} " --tag " ${CATALOG_IMG} "
365-
366339push-catalog : docker-login
367340 podman push --format=docker " ${CATALOG_IMG} "
368341
0 commit comments