From 60b0d22872086a67af87d094081e7adeb75ae22f Mon Sep 17 00:00:00 2001 From: Pete Savage Date: Mon, 18 Oct 2021 19:33:20 +0100 Subject: [PATCH] Delete other FE resources (#138) --- bonfire/namespaces.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bonfire/namespaces.py b/bonfire/namespaces.py index f6c1979c..0488bb54 100644 --- a/bonfire/namespaces.py +++ b/bonfire/namespaces.py @@ -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",