From 1761d41fc60513c584517de40db893556948659e Mon Sep 17 00:00:00 2001 From: ties Date: Tue, 27 Aug 2024 12:28:29 +0000 Subject: [PATCH] Update createHelmYaml.sh --- createHelmYaml.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/createHelmYaml.sh b/createHelmYaml.sh index 411543f..cfc256b 100644 --- a/createHelmYaml.sh +++ b/createHelmYaml.sh @@ -62,6 +62,9 @@ if [[ "$action" == "print" ]]; then elif [[ "$action" == "deploy" ]] && [[ -n "$KUBECONFIG_DATA" ]]; then kubectl version --kubeconfig=/home/notroot/.kube/config createHelmYaml | tee | kubectl apply -v -f - -else +elif [[ "$action" == "deploy" ]]; then + echo "# no .kube/config set" kubectl version --client=true +else + echo "# invalid action" fi