Update createHelmYaml.sh
All checks were successful
Build docker container / Build image (push) Successful in 10s
All checks were successful
Build docker container / Build image (push) Successful in 10s
This commit is contained in:
parent
8a92e45d1f
commit
eeed115128
@ -44,8 +44,7 @@ createHelmYaml() {
|
||||
}
|
||||
|
||||
# if KUBECONFIG_DATA is set
|
||||
if [[ -z "$KUBECONFIG_DATA" ]]; then
|
||||
# echo "# Installing ~/.kube/config"
|
||||
if [[ -n "$KUBECONFIG_DATA" ]]; then
|
||||
mkdir -p /home/notroot/.kube
|
||||
echo "$KUBECONFIG_DATA" > /home/notroot/.kube/config
|
||||
fi
|
||||
@ -53,10 +52,8 @@ fi
|
||||
# Check if the action environment variable is set to 'print'
|
||||
if [[ "$action" == "print" ]]; then
|
||||
createHelmYaml
|
||||
elif [[ "$KUBECONFIG_DATA" ]]; then
|
||||
wc -l /home/notroot/.kube/config
|
||||
ls -alh /home/notroot/.kube/config
|
||||
kubectl version --client=true
|
||||
elif [[ -n "$KUBECONFIG_DATA" ]]; then
|
||||
kubectl version
|
||||
else
|
||||
kubectl version --client=true
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user