Skip to content

AutoDevops fix ensure_namespace() does not explicitly test namespace

Jack Lei requested to merge jackalaus/gitlab-ce:ensure_namespace into master

What does this MR do?

The ensure_namespace() function test the existence of a namespace explicitly and ensures a namespace is created. The fix is simply changing describe to get as suggested by @optobot

kubectl describe namespace "$KUBE_NAMESPACE" || kubectl create namespace "$KUBE_NAMESPACE"

to

kubectl get namespace "$KUBE_NAMESPACE" || kubectl create namespace "$KUBE_NAMESPACE"

Fixes #50797 (closed)

Merge request reports