mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-08 14:22:49 +00:00
update to make undeploy in Makefile works correctly when namespace is not awx
This commit is contained in:
1
Makefile
1
Makefile
@@ -89,6 +89,7 @@ deploy: kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/c
|
|||||||
@$(KUSTOMIZE) build config/default | kubectl apply -f -
|
@$(KUSTOMIZE) build config/default | kubectl apply -f -
|
||||||
|
|
||||||
undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config.
|
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 -
|
$(KUSTOMIZE) build config/default | kubectl delete -f -
|
||||||
|
|
||||||
OS := $(shell uname -s | tr '[:upper:]' '[:lower:]')
|
OS := $(shell uname -s | tr '[:upper:]' '[:lower:]')
|
||||||
|
|||||||
Reference in New Issue
Block a user