From 1078949c5a02fdeef1e227136db7db76e54295f0 Mon Sep 17 00:00:00 2001 From: Federico Paolinelli Date: Wed, 24 Apr 2024 12:21:53 +0200 Subject: [PATCH] Makefile deploy-with-olm: override the csv version When running the CI from a tagged version (i.e. when doing releases), we need to override the csv version too as the tagged version is not main and CI would fail. Signed-off-by: Federico Paolinelli --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index bb2883f92..2c7f756af 100755 --- a/Makefile +++ b/Makefile @@ -174,6 +174,7 @@ deploy-olm: operator-sdk kind-cluster ## deploys OLM on the cluster $(OPERATOR_SDK) olm status deploy-with-olm: export VERSION=dev +deploy-with-olm: export CSV_VERSION=0.0.0 deploy-with-olm: deploy-olm load-on-kind build-and-push-bundle-images ## deploys the operator with OLM instead of manifests sed -i 's|image:.*|image: $(BUNDLE_INDEX_IMG)|' config/olm-install/install-resources.yaml sed -i 's#mymetallb#$(NAMESPACE)#g' config/olm-install/install-resources.yaml