Update createHelmYaml.sh
All checks were successful
Build docker container / Build image (push) Successful in 12s
All checks were successful
Build docker container / Build image (push) Successful in 12s
This commit is contained in:
parent
9f43162b7a
commit
8088809370
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user