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 <chengyu.zhu@intel.com>
Signed-off-by: Wang, Arron <arron.wang@intel.com>
This commit is contained in:
ChengyuZhu6 2024-07-10 09:55:18 +08:00
parent e874c8fa2e
commit 489afffd8c

View File

@ -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(){