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

This commit is contained in:
ties 2024-08-29 11:53:14 +00:00
parent 42bb5e7f86
commit 2898a4efc5

View File

@ -90,9 +90,10 @@ elif [[ "$action" == "helm-print" ]]; then
elif [[ "$action" == "helm-deploy" ]]; then
checkKubeConfig
helm dependency build .
helm template -g --set-json="subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)" .
hemlYaml=$(helm template -g --set-json="subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)" .)
echo "$helmYaml"
sleep 10
helm template -g --set-json="subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)" . | kubectl apply -f -
echo "$helmYaml" | kubectl apply -f -
else
echo "# invalid action"
fi