diff --git a/createHelmYaml.sh b/createHelmYaml.sh index b9beefb..74b4e73 100644 --- a/createHelmYaml.sh +++ b/createHelmYaml.sh @@ -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