From 8bdeb7bfc33ad6e29260983fb6c8adb852dad0b8 Mon Sep 17 00:00:00 2001 From: ties Date: Tue, 27 Aug 2024 13:34:49 +0000 Subject: [PATCH] Update createHelmYaml.sh --- createHelmYaml.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/createHelmYaml.sh b/createHelmYaml.sh index 23b090b..b9beefb 100644 --- a/createHelmYaml.sh +++ b/createHelmYaml.sh @@ -60,6 +60,9 @@ fi if [[ "$action" == "print" ]]; then createHelmYaml elif [[ "$action" == "deploy" ]] && [[ -n "$KUBECONFIG_DATA" ]]; then + kubectl version --kubeconfig=/home/notroot/.kube/config + createHelmYaml | tee | kubectl apply --kubeconfig=/home/notroot/.kube/config -f - +elif [[ "$action" == "deploy-dry-run" ]] && [[ -n "$KUBECONFIG_DATA" ]]; then kubectl version --kubeconfig=/home/notroot/.kube/config createHelmYaml | tee | kubectl apply --kubeconfig=/home/notroot/.kube/config --dry-run=client -o yaml -f - elif [[ "$action" == "deploy" ]]; then