From 2237e155345ef8b8ce5e1aaf5416fff0f52fdd75 Mon Sep 17 00:00:00 2001 From: andersonid Date: Mon, 29 Sep 2025 18:05:57 -0300 Subject: [PATCH] Fix: corrigido tratamento de ContainerResource como objeto Pydantic --- app/services/validation_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/validation_service.py b/app/services/validation_service.py index e45038c..c557f74 100644 --- a/app/services/validation_service.py +++ b/app/services/validation_service.py @@ -67,11 +67,11 @@ class ValidationService: self, pod_name: str, namespace: str, - container: Dict[str, Any] + container: Any ) -> List[ResourceValidation]: """Validate container resources""" validations = [] - resources = container.get("resources", {}) + resources = container.resources requests = resources.get("requests", {}) limits = resources.get("limits", {})