From 1d8b3d9b4c59cb1d8d87858209249ebdce035f4a Mon Sep 17 00:00:00 2001 From: "Christian M. Adams" Date: Tue, 7 Dec 2021 10:57:21 -0500 Subject: [PATCH] Fix deploy target for the devel branch * piping a make target within another target causes issues Signed-off-by: Christian M. Adams --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d2778f15..ea98b1e2 100644 --- a/Makefile +++ b/Makefile @@ -84,7 +84,9 @@ gen-resources: kustomize ## Generate resources for controller and print to stdou @$(KUSTOMIZE) build config/default deploy: kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config. - $(MAKE) gen-resources | kubectl apply -f - + @cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG} + @cd config/default && $(KUSTOMIZE) edit set namespace ${NAMESPACE} + @$(KUSTOMIZE) build config/default | kubectl apply -f - undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. $(KUSTOMIZE) build config/default | kubectl delete -f -