Commit 9b5f59c0 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix(context): use KUBE_CONTEXT when present

Closes #5
parent cf62e41c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -342,7 +342,7 @@ stages:
      log_info "--- using \\e[32mKUBECONFIG\\e[0m provided by GitLab"
      if [[ -n "$KUBE_CONTEXT" ]]
      then
        export HELM_KUBECONTEXT="${HELM_KUBECONTEXT:-$KUBE_CONTEXT}"
        kubectl config use-context "$KUBE_CONTEXT"
        log_info "--- switch to the given \\e[32mKUBE_CONTEXT\\e[0m: ${KUBE_CONTEXT}"
      fi
    else