update to make undeploy in Makefile works correctly when namespace is not awx

This commit is contained in:
longns1
2022-01-07 15:57:27 +07:00
parent 4a43de5101
commit 79152d2417

View File

@@ -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:]')