From 74f728b4846e6d81a59c01310596c047ffc2ecad Mon Sep 17 00:00:00 2001 From: Mehfuz Khan Date: Wed, 14 Aug 2024 18:47:14 +0530 Subject: [PATCH 1/2] WIP: reduce check namespace requests in saas deploy related integrations --- reconcile/openshift_base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reconcile/openshift_base.py b/reconcile/openshift_base.py index 523805b4aa..5e2d96f7a9 100644 --- a/reconcile/openshift_base.py +++ b/reconcile/openshift_base.py @@ -331,6 +331,7 @@ def fetch_current_state( init_api_resources: bool = False, cluster_admin: bool = False, caller: str | None = None, + init_projects: bool = False, ) -> tuple[ResourceInventory, OC_Map]: ri = ResourceInventory() settings = queries.get_app_interface_settings() @@ -340,6 +341,7 @@ def fetch_current_state( integration=integration, settings=settings, internal=internal, + init_projects=init_projects, use_jump_host=use_jump_host, thread_pool_size=thread_pool_size, init_api_resources=init_api_resources, From 7e0736abd83ae942006292f40fdbf3929a48b8c5 Mon Sep 17 00:00:00 2001 From: Mehfuz Khan Date: Wed, 14 Aug 2024 18:50:33 +0530 Subject: [PATCH 2/2] added init_project to fetch_current_state --- reconcile/openshift_saas_deploy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/reconcile/openshift_saas_deploy.py b/reconcile/openshift_saas_deploy.py index 550a016bbe..de1f0c8911 100644 --- a/reconcile/openshift_saas_deploy.py +++ b/reconcile/openshift_saas_deploy.py @@ -224,6 +224,7 @@ def run( init_api_resources=True, cluster_admin=bool(saasherder.cluster_admin), use_jump_host=use_jump_host, + init_projects=True, ) if defer: # defer is provided by the method decorator. this makes just mypy happy defer(oc_map.cleanup)