Update createHelmYaml.sh
All checks were successful
Build docker container / Build image (push) Successful in 13s
All checks were successful
Build docker container / Build image (push) Successful in 13s
This commit is contained in:
parent
bcc8358119
commit
e47a77a743
@ -84,14 +84,14 @@ elif [[ "$action" == "deploy" ]]; then
|
|||||||
createHelmYaml | kubectl apply -f -
|
createHelmYaml | kubectl apply -f -
|
||||||
elif [[ "$action" == "helm-print" ]]; then
|
elif [[ "$action" == "helm-print" ]]; then
|
||||||
helm dependency build .
|
helm dependency build .
|
||||||
helm template -g . --set-json="subchartData=$(yq '.chart_template.dependencies[0]' Chart.yaml -ojson | jq -rc)"
|
helm template -g . --set-json="chart_template.subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)"
|
||||||
elif [[ "$action" == "helm-deploy" ]]; then
|
elif [[ "$action" == "helm-deploy" ]]; then
|
||||||
checkKubeConfig
|
checkKubeConfig
|
||||||
helm dependency build .
|
helm dependency build .
|
||||||
helm template -g --set-json="subchartData=$(yq '.chart_template.dependencies[0]' Chart.yaml -ojson | jq -rc)" .
|
helm template -g --set-json="chart_template.subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)" .
|
||||||
echo "Deploying in 5 seconds..."
|
echo "Deploying in 5 seconds..."
|
||||||
sleep 5
|
sleep 5
|
||||||
helm template -g --set-json="subchartData=$(yq '.chart_template.dependencies[0]' Chart.yaml -ojson | jq -rc)" . | kubectl apply -f -
|
helm template -g --set-json="chart_template.subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)" . | kubectl apply -f -
|
||||||
else
|
else
|
||||||
echo "# invalid action"
|
echo "# invalid action"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user