Skip to content
Snippets Groups Projects
Commit 86c1f776 authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

Merge branch 'master' into 'master'

Resolve "Gitlab K8s Agent support"

Closes #39

See merge request to-be-continuous/helm!63
parents d6c98882 1b122e1f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment