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