Update createHelmYaml.sh
All checks were successful
Build docker container / Build image (push) Successful in 11s
All checks were successful
Build docker container / Build image (push) Successful in 11s
This commit is contained in:
parent
21ee42f85c
commit
a012d272d0
@ -48,12 +48,17 @@ 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
|
||||||
|
|
||||||
|
# if actions is not set
|
||||||
|
if [[ -n "$action" ]]; then
|
||||||
|
action="print"
|
||||||
|
fi
|
||||||
echo "# action: $action"
|
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 [[ "$action" == "deploy" ]] && [[ -n "$KUBECONFIG_DATA" ]]; then
|
||||||
kubectl version --kubeconfig=/home/notroot/.kube/config
|
kubectl version --kubeconfig=/home/notroot/.kube/config
|
||||||
createHelmYaml | tee | kubectl apply -v -f -
|
createHelmYaml | tee | kubectl apply -v -f -
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user