From ceaf9a58fe35da2bacbaad3dfaa8f043d542f89d Mon Sep 17 00:00:00 2001 From: Florian Zink Date: Tue, 13 Dec 2022 15:35:45 +0100 Subject: [PATCH] kustomize has to create a namespace if it doesn't exist --- kustomize.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kustomize.mk b/kustomize.mk index 0ce8f8d..115a44a 100644 --- a/kustomize.mk +++ b/kustomize.mk @@ -7,6 +7,9 @@ start-kustomize: @- echo "\n### setting kubernetes context to $(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 - + @- echo "\n### generating imagePullSecrets" @- imagePullSecretsOut.sh > $(KUSTOMIZE_FOLDER)/base/imagepullsecrets.yaml