diff --git a/createHelmYaml.sh b/createHelmYaml.sh index f879790..6881a71 100644 --- a/createHelmYaml.sh +++ b/createHelmYaml.sh @@ -43,6 +43,13 @@ createHelmYaml() { echo "$helm_chart_yaml" } +# if KUBECONFIG_DATA is set +if[[ -z "$KUBECONFIG_DATA" ]]; then + print "# Installing .kube/config" + mkdir -p ~/.kube + echo "$KUBECONFIG_DATA" > ~/.kube/config +fi + # Check if the action environment variable is set to 'print' if [[ "$action" == "print" ]]; then createHelmYaml