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