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
249a2b4328
commit
bbbe2b3982
@ -48,13 +48,14 @@ if [[ -n "$KUBECONFIG_DATA" ]]; then
|
|||||||
mkdir -p /home/notroot/.kube
|
mkdir -p /home/notroot/.kube
|
||||||
echo "$KUBECONFIG_DATA" > /home/notroot/.kube/config
|
echo "$KUBECONFIG_DATA" > /home/notroot/.kube/config
|
||||||
fi
|
fi
|
||||||
|
echo "# action: $action"
|
||||||
|
|
||||||
# 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 [[ -n "$KUBECONFIG_DATA" ]]; then
|
elif [[ -n "$KUBECONFIG_DATA" ]]; then
|
||||||
echo "$KUBECONFIG_DATA"
|
|
||||||
kubectl version
|
kubectl version
|
||||||
|
wc -l /home/notroot/.kube/config
|
||||||
else
|
else
|
||||||
kubectl version --client=true
|
kubectl version --client=true
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user