Update createHelmYaml.sh
All checks were successful
Build docker container / Build image (push) Successful in 12s

This commit is contained in:
ties 2024-08-27 11:28:22 +00:00
parent 249a2b4328
commit bbbe2b3982

View File

@ -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