AutoDevops fix ensure_namespace() does not explicitly test namespace

This commit is contained in:
Jack Lei 2019-06-13 22:09:28 +00:00 committed by Thong Kuah
parent 2658620989
commit 0b75ef09d2
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
title: AutoDevops function ensure_namespace() now explicitly tests the namespace
merge_request: 29567
author: Jack Lei
type: fixed

View file

@ -505,7 +505,7 @@ rollout 100%:
}
function ensure_namespace() {
kubectl describe namespace "$KUBE_NAMESPACE" || kubectl create namespace "$KUBE_NAMESPACE"
kubectl get namespace "$KUBE_NAMESPACE" || kubectl create namespace "$KUBE_NAMESPACE"
}
function check_kube_domain() {