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