kustomize has to create a namespace if it doesn't exist

This commit is contained in:
Florian Zink 2022-12-13 15:35:45 +01:00
parent 27fed6769f
commit ceaf9a58fe
1 changed files with 3 additions and 0 deletions

View File

@ -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