Skip to content

Commit

Permalink
Add Bundle-cleanup
Browse files Browse the repository at this point in the history
Add `bundle-cleanup` Makefile target to remove a bundle installed via
`bundle-run`

Signed-off-by: Carlo Lobrano <[email protected]>
  • Loading branch information
clobrano committed Nov 13, 2023
1 parent 5662737 commit 9605a2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9605a2d

Please sign in to comment.