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

This commit is contained in:
ties 2024-08-29 13:30:03 +00:00
parent fc20646701
commit bcc8358119

View File

@ -84,14 +84,14 @@ elif [[ "$action" == "deploy" ]]; then
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)"
helm template -g . --set-json="subchartData=$(yq '.chart_template.dependencies[0]' Chart.yaml -ojson | jq -rc)"
elif [[ "$action" == "helm-deploy" ]]; then
checkKubeConfig
helm dependency build .
helm template -g --set-json="subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)" .
helm template -g --set-json="subchartData=$(yq '.chart_template.dependencies[0]' Chart.yaml -ojson | jq -rc)" .
echo "Deploying in 5 seconds..."
sleep 5
helm template -g --set-json="subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)" . | kubectl apply -f -
helm template -g --set-json="subchartData=$(yq '.chart_template.dependencies[0]' Chart.yaml -ojson | jq -rc)" . | kubectl apply -f -
else
echo "# invalid action"
fi