AutoDevops fix ensure_namespace() does not explicitly test namespace
This commit is contained in:
parent
2658620989
commit
0b75ef09d2
2 changed files with 6 additions and 1 deletions
5
changelogs/unreleased/ensure_namespace.yml
Normal file
5
changelogs/unreleased/ensure_namespace.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: AutoDevops function ensure_namespace() now explicitly tests the namespace
|
||||
merge_request: 29567
|
||||
author: Jack Lei
|
||||
type: fixed
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue