From 651864744b521c425e67b846753a50c8aed68d56 Mon Sep 17 00:00:00 2001 From: Clive Cox Date: Fri, 14 Dec 2018 11:29:18 +0000 Subject: [PATCH] Update e2e test setup script to delete namespace to stop flakes --- testing/scripts/k8s_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testing/scripts/k8s_utils.py b/testing/scripts/k8s_utils.py index 9c6072e330..e624e0dbd3 100644 --- a/testing/scripts/k8s_utils.py +++ b/testing/scripts/k8s_utils.py @@ -34,6 +34,8 @@ def setup_finalizer_helm(request): def fin(): run("helm delete seldon-core --purge", shell=True) run("helm delete seldon-core-crd --purge", shell=True) + run("kubectl delete namespace seldon", shell=True) + run("kubectl delete namespace test1", shell=True) request.addfinalizer(fin) def setup_finalizer_ksonnet(request): @@ -43,6 +45,8 @@ def fin(): wait_for_shutdown("seldon-core-seldon-apiserver") wait_for_shutdown("seldon-core-ambassador") run('rm -rf my-ml-deployment', shell=True) + run("kubectl delete namespace seldon", shell=True) + run("kubectl delete namespace test1", shell=True) request.addfinalizer(fin) def create_seldon_single_namespace_helm(request):