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
207325f3ea
commit
42bb5e7f86
@ -67,7 +67,7 @@ function checkKubeConfig(){
|
|||||||
if [[ -z "$action" ]]; then
|
if [[ -z "$action" ]]; then
|
||||||
action="print"
|
action="print"
|
||||||
fi
|
fi
|
||||||
echo "# action: $action"
|
echo "# Action: $action"
|
||||||
|
|
||||||
# if KUBECONFIG_DATA is set
|
# if KUBECONFIG_DATA is set
|
||||||
if [[ -n "$KUBECONFIG_DATA" ]]; then
|
if [[ -n "$KUBECONFIG_DATA" ]]; then
|
||||||
@ -90,8 +90,9 @@ elif [[ "$action" == "helm-print" ]]; then
|
|||||||
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 '.dependencies[0]' Chart.yaml -ojson | jq -rc)"
|
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)" | kubectl apply -f -
|
sleep 10
|
||||||
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user