diff --git a/.pipelines/cni/lsg/lsg-cni-intergration-template.yaml b/.pipelines/cni/lsg/lsg-cni-intergration-template.yaml index 23dd7b059d..32c57c4ab4 100644 --- a/.pipelines/cni/lsg/lsg-cni-intergration-template.yaml +++ b/.pipelines/cni/lsg/lsg-cni-intergration-template.yaml @@ -176,7 +176,7 @@ stages: echo "Delete load-test Namespace" make -C ./hack/aks set-kubeconf AZCLI=az CLUSTER=${{ parameters.clusterName }}-$(commitID) kubectl get ns --no-headers | grep -v 'kube\|default' | awk '{print $1}' - delete=`kubectl get ns --no-headers | grep -v 'kube\|default' | awk '{print $1}'` + delete=`kubectl get ns --no-headers | grep -v 'kube\|default\|gatekeeper' | awk '{print $1}'` kubectl delete ns $delete kubectl cluster-info kubectl get po -owide -A diff --git a/.pipelines/cni/singletenancy/cniv1-template.yaml b/.pipelines/cni/singletenancy/cniv1-template.yaml index c89394bccb..e8b9c3ff8c 100644 --- a/.pipelines/cni/singletenancy/cniv1-template.yaml +++ b/.pipelines/cni/singletenancy/cniv1-template.yaml @@ -203,7 +203,7 @@ stages: echo "Delete load-test Namespace" make -C ./hack/aks set-kubeconf AZCLI=az CLUSTER=${{ parameters.clusterName }}-$(commitID) kubectl get ns --no-headers | grep -v 'kube\|default' | awk '{print $1}' - delete=`kubectl get ns --no-headers | grep -v 'kube\|default' | awk '{print $1}'` + delete=`kubectl get ns --no-headers | grep -v 'kube\|default\|gatekeeper' | awk '{print $1}'` kubectl delete ns $delete kubectl cluster-info kubectl get po -owide -A @@ -315,7 +315,7 @@ stages: echo "Delete load-test Namespace" make -C ./hack/aks set-kubeconf AZCLI=az CLUSTER=${{ parameters.clusterName }}-$(commitID) kubectl get ns --no-headers | grep -v 'kube\|default' | awk '{print $1}' - delete=`kubectl get ns --no-headers | grep -v 'kube\|default' | awk '{print $1}'` + delete=`kubectl get ns --no-headers | grep -v 'kube\|default\|gatekeeper' | awk '{print $1}'` kubectl delete ns $delete kubectl cluster-info kubectl get po -owide -A diff --git a/.pipelines/cni/singletenancy/cniv2-template.yaml b/.pipelines/cni/singletenancy/cniv2-template.yaml index b965359b22..d040e2569b 100644 --- a/.pipelines/cni/singletenancy/cniv2-template.yaml +++ b/.pipelines/cni/singletenancy/cniv2-template.yaml @@ -258,7 +258,7 @@ stages: echo "Delete load-test Namespace" make -C ./hack/aks set-kubeconf AZCLI=az CLUSTER=${{ parameters.clusterName }}-$(commitID) kubectl get ns --no-headers | grep -v 'kube\|default' | awk '{print $1}' - delete=`kubectl get ns --no-headers | grep -v 'kube\|default' | awk '{print $1}'` + delete=`kubectl get ns --no-headers | grep -v 'kube\|default\|gatekeeper' | awk '{print $1}'` kubectl delete ns $delete kubectl cluster-info kubectl get po -owide -A