AutoDevops fix ensure_namespace() does not explicitly test namespace
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)