Update createHelmYaml.sh
All checks were successful
Build docker container / Build image (push) Successful in 15s
All checks were successful
Build docker container / Build image (push) Successful in 15s
This commit is contained in:
parent
2898a4efc5
commit
cf28e130d5
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user