From 2544d6d29e14af1b5f37d89462ed6a75b6948762 Mon Sep 17 00:00:00 2001 From: Brandon Squizzato Date: Thu, 15 Jul 2021 16:59:16 -0400 Subject: [PATCH] Set delete timeout for ns cleanup --- bonfire/namespaces.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bonfire/namespaces.py b/bonfire/namespaces.py index 634b0f4b..bcc131bf 100644 --- a/bonfire/namespaces.py +++ b/bonfire/namespaces.py @@ -318,7 +318,7 @@ def _delete_resources(namespace): "clowdapps", ] for resource in resources_to_delete: - oc("delete", resource, "--all", n=namespace) + oc("delete", resource, "--all", n=namespace, timeout="60s") # delete the ClowdEnvironment for this namespace if get_json("clowdenvironment", conf.ENV_NAME_FORMAT.format(namespace=namespace)): @@ -326,6 +326,7 @@ def _delete_resources(namespace): "delete", "clowdenvironment", conf.ENV_NAME_FORMAT.format(namespace=namespace), + timeout="60s", ) # delete any other lingering specific resource types from the namespace @@ -357,7 +358,7 @@ def _delete_resources(namespace): "persistentvolumeclaims", ] for resource in resources_to_delete: - oc("delete", resource, "--all", n=namespace) + oc("delete", resource, "--all", n=namespace, timeout="60s") def add_base_resources(namespace, secret_names):