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

This commit is contained in:
ties 2024-08-27 11:16:40 +00:00
parent 8088809370
commit 9593baa152

View File

@ -48,14 +48,13 @@ if [[ -z "$KUBECONFIG_DATA" ]]; then
# echo "# Installing ~/.kube/config"
mkdir -p /home/notroot/.kube
echo "$KUBECONFIG_DATA" > /home/notroot/.kube/config
ls "/home/notroot/.kube"
fi
# Check if the action environment variable is set to 'print'
if [[ "$action" == "print" ]]; then
createHelmYaml
elif [[ -z "$KUBECONFIG_DATA" ]]; then
wc -l ~/.kube/config
wc -l /home/notroot/.kube/config
kubectl version --client=true
else
kubectl version --client=true