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:13:24 +00:00
parent e31221236b
commit aaab02a962

View File

@ -46,10 +46,9 @@ createHelmYaml() {
# if KUBECONFIG_DATA is set
if [[ -z "$KUBECONFIG_DATA" ]]; then
echo "# Installing ~/.kube/config"
whoami
ls "/home/$(whoami)"
mkdir -p ~/.kube
echo "$KUBECONFIG_DATA" > ~/.kube/config
ls "~/.kube"
fi
# Check if the action environment variable is set to 'print'
@ -57,7 +56,7 @@ if [[ "$action" == "print" ]]; then
createHelmYaml
elif [[ -z "$KUBECONFIG_DATA" ]]; then
head -n2 ~/.kube/config
echo "$KUBECONFIF_DATA" | head -n2
echo "$KUBECONFIG_DATA" | head -n2
wc -l ~/.kube/config
kubectl version --client=true
else