diff --git a/createHelmYaml.sh b/createHelmYaml.sh index 23b090b..b9beefb 100644 --- a/createHelmYaml.sh +++ b/createHelmYaml.sh @@ -60,6 +60,9 @@ fi 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 - +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 - elif [[ "$action" == "deploy" ]]; then