Skip to content

Commit

Permalink
Set delete timeout for ns cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bsquizz committed Jul 15, 2021
1 parent 34f6fae commit 2544d6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bonfire/namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,14 +318,15 @@ 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)):
oc(
"delete",
"clowdenvironment",
conf.ENV_NAME_FORMAT.format(namespace=namespace),
timeout="60s",
)

# delete any other lingering specific resource types from the namespace
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 2544d6d

Please sign in to comment.