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