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

This commit is contained in:
ties 2024-08-28 12:05:29 +00:00
parent f2d2470212
commit d04ab60c6e

View File

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