Update createHelmYaml.sh
All checks were successful
Build docker container / Build image (push) Successful in 11s

This commit is contained in:
ties 2024-08-27 12:27:03 +00:00
parent a012d272d0
commit 4d3af37371

View File

@ -43,18 +43,19 @@ createHelmYaml() {
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 [[ -n "$action" ]]; then
action="print"
fi
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'
if [[ "$action" == "print" ]]; then
createHelmYaml