From 489afffd8c01737366a7d43fc630cf155bff8a8b Mon Sep 17 00:00:00 2001 From: ChengyuZhu6 Date: Wed, 10 Jul 2024 09:55:18 +0800 Subject: [PATCH] tests:gha: delete namespace before resetting namespace Delete the kata-containers-k8s-tests namespace before resetting the namespace to ensure that no deployments or services are restarting and creating pods in the default namespace. Signed-off-by: ChengyuZhu6 Signed-off-by: Wang, Arron --- tests/gha-run-k8s-common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gha-run-k8s-common.sh b/tests/gha-run-k8s-common.sh index cb9535e14..28f876a8b 100644 --- a/tests/gha-run-k8s-common.sh +++ b/tests/gha-run-k8s-common.sh @@ -361,8 +361,8 @@ function set_default_cluster_namespace() { } function delete_test_cluster_namespace() { - set_default_cluster_namespace kubectl delete namespace "${TEST_CLUSTER_NAMESPACE}" + set_default_cluster_namespace } function delete_test_runners(){