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