diff --git a/Makefile b/Makefile index 5467446d..e23300a7 100644 --- a/Makefile +++ b/Makefile @@ -175,14 +175,18 @@ test: envtest manifests generate fmt vet ## Run tests. go test ./api/... ./controllers/... ./pkg/... -coverprofile cover.out -v ${TEST_OPS} .PHONY: bundle-run -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. +export BUNDLE_RUN_NAMESPACE ?= openshift-workload-availability +bundle-run: operator-sdk create-ns ## Run bundle image. Default NS is "openshift-workload-availability", 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) +.PHONY: create-ns +create-ns: ## Create namespace + $(KUBECTL) get ns $(BUNDLE_RUN_NAMESPACE) 2>&1> /dev/null || $(KUBECTL) create ns $(BUNDLE_RUN_NAMESPACE) + ##@ Build .PHONY: build