diff --git a/createHelmYaml.sh b/createHelmYaml.sh index ee20a16..e129405 100644 --- a/createHelmYaml.sh +++ b/createHelmYaml.sh @@ -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