From 8e41a3935dbd94cb042e61b4d0a4510b50828f8e Mon Sep 17 00:00:00 2001 From: Stefan Riepenhausen Date: Wed, 21 Dec 2022 11:09:20 +0100 Subject: [PATCH] fail and exit on some errors --- kustomize.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kustomize.mk b/kustomize.mk index 16a7abb..461d1c0 100644 --- a/kustomize.mk +++ b/kustomize.mk @@ -6,7 +6,7 @@ MANDATORY-kustomize = K8S_CONTEXT KUSTOMIZE_FOLDER start-kustomize: @- echo "\n### starting deployment with kustomize" @- echo "\n### setting kubernetes context to $(K8S_CONTEXT)" - @- kubectl config use-context $(K8S_CONTEXT) + @ kubectl config use-context $(K8S_CONTEXT) @- echo "\n### create namespace $(K8S_NAMESPACE)" @- kubectl create namespace "$(K8S_NAMESPACE)" --dry-run=client -o yaml | kubectl apply -f - @@ -18,12 +18,12 @@ start-kustomize: ifdef KUSTOMIZE_EDIT_NAMESPACE @- echo "\n### setting namespace to $(K8S_NAMESPACE)" - @- cd $(KUSTOMIZE_FOLDER) && kustomize edit set namespace $(K8S_NAMESPACE) + @ cd $(KUSTOMIZE_FOLDER) && kustomize edit set namespace $(K8S_NAMESPACE) endif # actual deployment is happening here @- echo "\n### applying kustomizations" - @- cd $(KUSTOMIZE_FOLDER) && kubectl apply -k . + @ cd $(KUSTOMIZE_FOLDER) && kubectl apply -k . pull-kustomize: # nop