From f5b6a63ed383c49bb2378df6c55f658a2b96aa01 Mon Sep 17 00:00:00 2001 From: ties Date: Tue, 27 Aug 2024 10:52:45 +0000 Subject: [PATCH] Update createHelmYaml.sh --- createHelmYaml.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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