From f59ac5a535f2f585526289de48f55c0aa1769edf Mon Sep 17 00:00:00 2001 From: Carlo Lobrano Date: Thu, 9 Nov 2023 18:52:26 +0100 Subject: [PATCH] Add bundle-cleanup target Add bundle-cleanup target to remove the bundle installed via bundle-run Signed-off-by: Carlo Lobrano --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index ecdcd416..e8656348 100644 --- a/Makefile +++ b/Makefile @@ -191,6 +191,10 @@ export BUNDLE_RUN_NAMESPACE ?= openshift-operators bundle-run: operator-sdk ## Run bundle image. Default NS is "openshift-operators", redefine BUNDLE_RUN_NAMESPACE to override it. $(OPERATOR_SDK) -n $(BUNDLE_RUN_NAMESPACE) run bundle $(BUNDLE_IMG) +.PHONY: bundle-cleanup +bundle-cleanup: operator-sdk ## Remove bundle installed via bundle-run + $(OPERATOR_SDK) -n openshift-operators cleanup $(OPERATOR_NAME) + ##@ Build .PHONY: build