diff --git a/createHelmYaml.sh b/createHelmYaml.sh index 3cc4ba3..0761cf6 100644 --- a/createHelmYaml.sh +++ b/createHelmYaml.sh @@ -87,11 +87,10 @@ elif [[ "$action" == "helm-print" ]]; then elif [[ "$action" == "helm-deploy" ]]; then checkKubeConfig helm dependency build . - hemlYaml=$(helm template -g --set-json="subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)" .) - echo "$helmYaml" + helm template -g --set-json="subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)" . echo "Deploying in 5 seconds..." sleep 5 - echo "$helmYaml" | kubectl apply -f - + helm template -g --set-json="subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)" . | kubectl apply -f - else echo "# invalid action" fi