From 9f158b7d85147cd98761c661668086fa9d459110 Mon Sep 17 00:00:00 2001 From: appiepollo14 Date: Mon, 14 Oct 2024 08:55:02 +0200 Subject: [PATCH] Fixes https://github.com/argoproj-labs/argocd-operator/issues/1564 using `make bundle` on MacOS Signed-off-by: appiepollo14 --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 45c02a62f..db4d67cbc 100644 --- a/Makefile +++ b/Makefile @@ -199,7 +199,10 @@ bundle: operator-sdk manifests kustomize ## Generate bundle manifests and metada cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG) $(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle -q --overwrite --version $(VERSION) $(BUNDLE_METADATA_OPTS) $(OPERATOR_SDK) bundle validate ./bundle - sed -i 's/control-plane: argocd-operator/control-plane: controller-manager/g' bundle/manifests/argocd-operator-webhook-service_v1_service.yaml bundle/manifests/argocd-operator-controller-manager-metrics-service_v1_service.yaml bundle/manifests/argocd-operator.clusterserviceversion.yaml + sed -i '' 's/control-plane: argocd-operator/control-plane: controller-manager/g' \ + bundle/manifests/argocd-operator-webhook-service_v1_service.yaml \ + bundle/manifests/argocd-operator-controller-manager-metrics-service_v1_service.yaml \ + bundle/manifests/argocd-operator.clusterserviceversion.yaml rm -fr deploy/olm-catalog/argocd-operator/$(VERSION) mkdir -p deploy/olm-catalog/argocd-operator/$(VERSION) cp -r bundle/manifests/* deploy/olm-catalog/argocd-operator/$(VERSION)/