Unverified Commit 1b122e1f authored by Ronny Moreas's avatar Ronny Moreas
Browse files

fix(KUBECONFIG): select to given KUBE_CONTEXT if provided

parent d6c98882
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -339,6 +339,11 @@ stages:
    elif [[ -n "$KUBECONFIG" ]]
    then
      log_info "--- using \\e[32mKUBECONFIG\\e[0m provided by GitLab"
      if [[ -n "$KUBE_CONTEXT" ]]
      then
        kubectl config use-context "$KUBE_CONTEXT"
        log_info "--- switch to the given \\e[32mKUBE_CONTEXT\\e[0m: ${KUBE_CONTEXT}"
      fi
    else
      log_warn "No \\e[32mKUBECONFIG\\e[0m configuration found!"
    fi