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 KUBECONFIG_DATA is set
if [[ -z "$KUBECONFIG_DATA" ]]; then if [[ -z "$KUBECONFIG_DATA" ]]; then
# echo "# Installing ~/.kube/config" # echo "# Installing ~/.kube/config"
# mkdir -p ~/.kube mkdir -p /home/notroot/.kube
# echo "$KUBECONFIG_DATA" > ~/.kube/config echo "$KUBECONFIG_DATA" > /home/notroot/.kube/config
ls "/home" ls "/home/notroot/.kube"
fi fi
# Check if the action environment variable is set to 'print' # Check if the action environment variable is set to 'print'
if [[ "$action" == "print" ]]; then if [[ "$action" == "print" ]]; then
createHelmYaml createHelmYaml
elif [[ -z "$KUBECONFIG_DATA" ]]; then elif [[ -z "$KUBECONFIG_DATA" ]]; then
head -n2 ~/.kube/config
echo "$KUBECONFIG_DATA" | head -n2
wc -l ~/.kube/config wc -l ~/.kube/config
kubectl version --client=true kubectl version --client=true
else else