From 9605a2d8dff36d970ca13c421447741e43433839 Mon Sep 17 00:00:00 2001 From: Carlo Lobrano Date: Mon, 13 Nov 2023 14:42:27 +0100 Subject: [PATCH] Add Bundle-cleanup Add `bundle-cleanup` Makefile target to remove a bundle installed via `bundle-run` Signed-off-by: Carlo Lobrano --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 32cbfd8de..5d7b71144 100644 --- a/Makefile +++ b/Makefile @@ -176,6 +176,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 $(BUNDLE_RUN_NAMESPACE) cleanup $(OPERATOR_NAME) + ##@ Build .PHONY: build