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:59:57 +00:00
parent 2898a4efc5
commit cf28e130d5

View File

@ -81,9 +81,6 @@ if [[ "$action" == "print" ]]; then
elif [[ "$action" == "deploy" ]]; then
checkKubeConfig
createHelmYaml | kubectl apply -f -
elif [[ "$action" == "helm-deploy" ]]; then
checkKubeConfig
createHelmYaml | kubectl apply -f -
elif [[ "$action" == "helm-print" ]]; then
helm dependency build .
helm template -g . --set-json="subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)"
@ -92,7 +89,8 @@ elif [[ "$action" == "helm-deploy" ]]; then
helm dependency build .
hemlYaml=$(helm template -g --set-json="subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)" .)
echo "$helmYaml"
sleep 10
echo "Deploying in 5 seconds..."
sleep 5
echo "$helmYaml" | kubectl apply -f -
else
echo "# invalid action"