From 8088809370f42f1ecca541d8944a76e30eaa4d39 Mon Sep 17 00:00:00 2001 From: ties Date: Tue, 27 Aug 2024 11:15:23 +0000 Subject: [PATCH] Update createHelmYaml.sh --- createHelmYaml.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/createHelmYaml.sh b/createHelmYaml.sh index 08d5e95..62ecad5 100644 --- a/createHelmYaml.sh +++ b/createHelmYaml.sh @@ -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