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
a012d272d0
commit
4d3af37371
@ -43,18 +43,19 @@ createHelmYaml() {
|
|||||||
echo "$helm_chart_yaml"
|
echo "$helm_chart_yaml"
|
||||||
}
|
}
|
||||||
|
|
||||||
# if KUBECONFIG_DATA is set
|
|
||||||
if [[ -n "$KUBECONFIG_DATA" ]]; then
|
|
||||||
mkdir -p /home/notroot/.kube
|
|
||||||
echo "$KUBECONFIG_DATA" > /home/notroot/.kube/config
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if actions is not set
|
# if actions is not set
|
||||||
if [[ -n "$action" ]]; then
|
if [[ -n "$action" ]]; then
|
||||||
action="print"
|
action="print"
|
||||||
fi
|
fi
|
||||||
echo "# action: $action"
|
echo "# action: $action"
|
||||||
|
|
||||||
|
# if KUBECONFIG_DATA is set
|
||||||
|
if [[ -n "$KUBECONFIG_DATA" ]]; then
|
||||||
|
mkdir -p /home/notroot/.kube
|
||||||
|
echo "$KUBECONFIG_DATA" > /home/notroot/.kube/config
|
||||||
|
echo "# .kube/config is set"
|
||||||
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user