From f2713329bb005e8a518155fa22d338f99acf56af Mon Sep 17 00:00:00 2001 From: andersonid Date: Mon, 6 Oct 2025 16:02:27 -0300 Subject: [PATCH] fix: include system namespaces in validations endpoint to detect resource-governance workload issues --- app/api/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/routes.py b/app/api/routes.py index 4d3fbcb..49624c9 100644 --- a/app/api/routes.py +++ b/app/api/routes.py @@ -243,6 +243,7 @@ async def get_validations( severity: Optional[str] = None, page: int = 1, page_size: int = 50, + include_system_namespaces: bool = True, k8s_client=Depends(get_k8s_client) ): """List resource validations with pagination""" @@ -252,7 +253,7 @@ async def get_validations( namespace_resources = await k8s_client.get_namespace_resources(namespace) pods = namespace_resources.pods else: - pods = await k8s_client.get_all_pods() + pods = await k8s_client.get_all_pods(include_system_namespaces=include_system_namespaces) # Validate resources all_validations = []