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:15:23 +00:00
parent 9f43162b7a
commit 8088809370

View File

@ -46,17 +46,15 @@ createHelmYaml() {
# if KUBECONFIG_DATA is set
if [[ -z "$KUBECONFIG_DATA" ]]; then
# echo "# Installing ~/.kube/config"
# mkdir -p ~/.kube
# echo "$KUBECONFIG_DATA" > ~/.kube/config
ls "/home"
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
head -n2 ~/.kube/config
echo "$KUBECONFIG_DATA" | head -n2
wc -l ~/.kube/config
kubectl version --client=true
else