From f1d65ac4c97155b77e6aea1ea126894b04fced93 Mon Sep 17 00:00:00 2001 From: ties Date: Thu, 29 Aug 2024 12:01:40 +0000 Subject: [PATCH] Update createHelmYaml.sh --- createHelmYaml.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/createHelmYaml.sh b/createHelmYaml.sh index 3cc4ba3..0761cf6 100644 --- a/createHelmYaml.sh +++ b/createHelmYaml.sh @@ -87,11 +87,10 @@ elif [[ "$action" == "helm-print" ]]; then elif [[ "$action" == "helm-deploy" ]]; then checkKubeConfig helm dependency build . - hemlYaml=$(helm template -g --set-json="subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)" .) - echo "$helmYaml" + helm template -g --set-json="subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)" . echo "Deploying in 5 seconds..." sleep 5 - echo "$helmYaml" | kubectl apply -f - + helm template -g --set-json="subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)" . | kubectl apply -f - else echo "# invalid action" fi