From ea309e8ef0bb1d4b2ae56a0cf3d31f24e1dbd3d4 Mon Sep 17 00:00:00 2001 From: andersonid Date: Tue, 30 Sep 2025 12:23:46 -0300 Subject: [PATCH] Fix: ContainerResource object is not subscriptable error --- app/models/resource_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/resource_models.py b/app/models/resource_models.py index 281ba2f..48cf2b4 100644 --- a/app/models/resource_models.py +++ b/app/models/resource_models.py @@ -16,7 +16,7 @@ class PodResource(BaseModel): namespace: str node_name: Optional[str] = None phase: str - containers: List[ContainerResource] + containers: List[Dict[str, Any]] cpu_requests: float = 0.0 memory_requests: float = 0.0 cpu_limits: float = 0.0