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

This commit is contained in:
ties 2024-08-29 12:01:40 +00:00
parent cf28e130d5
commit f1d65ac4c9

View File

@ -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