From bbbe2b398262d7b62bf9e5fd7185d919b0e0cfa0 Mon Sep 17 00:00:00 2001 From: ties Date: Tue, 27 Aug 2024 11:28:22 +0000 Subject: [PATCH] Update createHelmYaml.sh --- createHelmYaml.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/createHelmYaml.sh b/createHelmYaml.sh index 7ed76f0..44cdb80 100644 --- a/createHelmYaml.sh +++ b/createHelmYaml.sh @@ -48,13 +48,14 @@ if [[ -n "$KUBECONFIG_DATA" ]]; then mkdir -p /home/notroot/.kube echo "$KUBECONFIG_DATA" > /home/notroot/.kube/config fi +echo "# action: $action" # Check if the action environment variable is set to 'print' if [[ "$action" == "print" ]]; then createHelmYaml elif [[ -n "$KUBECONFIG_DATA" ]]; then - echo "$KUBECONFIG_DATA" kubectl version + wc -l /home/notroot/.kube/config else kubectl version --client=true fi