fail and exit on some errors

This commit is contained in:
Stefan Riepenhausen 2022-12-21 11:27:58 +01:00
parent 8e41a3935d
commit b0060bfae4
1 changed files with 2 additions and 2 deletions

4
k8s.mk
View File

@ -7,13 +7,13 @@ MANDATORY-k8s = K8S_CONTEXT
start-k8s: start-k8s:
@- echo "\n### starting deployment with k8s" @- echo "\n### starting deployment with k8s"
@- echo "\n### setting kubernetes context to $(K8S_CONTEXT)" @- echo "\n### setting kubernetes context to $(K8S_CONTEXT)"
@- kubectl config use-context $(K8S_CONTEXT) @ kubectl config use-context $(K8S_CONTEXT)
@- echo "\n### generating imagePullSecrets" @- echo "\n### generating imagePullSecrets"
@- imagePullSecrets.sh @- imagePullSecrets.sh
@- echo "\n### run kubectl apply -f kubernetes.yaml and secrets.yaml" @- echo "\n### run kubectl apply -f kubernetes.yaml and secrets.yaml"
@- cat kubernetes.yaml secrets.yaml | envsubst | kubectl apply -f - @ cat kubernetes.yaml secrets.yaml | envsubst | kubectl apply -f -
pull-k8s: pull-k8s:
# nop # nop