Update createHelmYaml.sh
All checks were successful
Build docker container / Build image (push) Successful in 11s

This commit is contained in:
ties 2024-08-27 13:35:15 +00:00
parent 8bdeb7bfc3
commit a223a63184

View File

@ -61,10 +61,10 @@ if [[ "$action" == "print" ]]; then
createHelmYaml
elif [[ "$action" == "deploy" ]] && [[ -n "$KUBECONFIG_DATA" ]]; then
kubectl version --kubeconfig=/home/notroot/.kube/config
createHelmYaml | tee | kubectl apply --kubeconfig=/home/notroot/.kube/config -f -
createHelmYaml | kubectl apply --kubeconfig=/home/notroot/.kube/config -f -
elif [[ "$action" == "deploy-dry-run" ]] && [[ -n "$KUBECONFIG_DATA" ]]; then
kubectl version --kubeconfig=/home/notroot/.kube/config
createHelmYaml | tee | kubectl apply --kubeconfig=/home/notroot/.kube/config --dry-run=client -o yaml -f -
createHelmYaml | kubectl apply --kubeconfig=/home/notroot/.kube/config --dry-run=client -o yaml -f -
elif [[ "$action" == "deploy" ]]; then
echo "# no .kube/config set"
kubectl version --client=true