From 79152d2417f272433bc0f5bb4e9102cc80b95e6a Mon Sep 17 00:00:00 2001 From: longns1 Date: Fri, 7 Jan 2022 15:57:27 +0700 Subject: [PATCH] update to make undeploy in Makefile works correctly when namespace is not awx --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index ea98b1e2..86c71dfa 100644 --- a/Makefile +++ b/Makefile @@ -89,6 +89,7 @@ deploy: kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/c @$(KUSTOMIZE) build config/default | kubectl apply -f - undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. + @cd config/default && $(KUSTOMIZE) edit set namespace ${NAMESPACE} $(KUSTOMIZE) build config/default | kubectl delete -f - OS := $(shell uname -s | tr '[:upper:]' '[:lower:]')