Skip to content

Commit

Permalink
Delete other FE resources (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
psav authored Oct 18, 2021
1 parent a66fc41 commit 60b0d22
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bonfire/namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,20 @@ def _delete_resources(namespace):
timeout="60s",
)

# delete the FrontendEnvironment for this namespace
if get_json("frontendenvironment", conf.ENV_NAME_FORMAT.format(namespace=namespace)):
oc(
"delete",
"frontendenvironment",
conf.ENV_NAME_FORMAT.format(namespace=namespace),
timeout="60s",
)

# delete any other lingering specific resource types from the namespace
resources_to_delete = [
"ingresses",
"frontends",
"bundles",
"elasticsearches",
"horizontalpodautoscalers",
"kafkabridges",
Expand Down

0 comments on commit 60b0d22

Please sign in to comment.