From bcc83581195f40aa6bf8cfede56970d67255d388 Mon Sep 17 00:00:00 2001 From: ties Date: Thu, 29 Aug 2024 13:30:03 +0000 Subject: [PATCH] Update createHelmYaml.sh --- createHelmYaml.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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