Add debug logging for pod filtering

This commit is contained in:
2025-10-04 10:11:00 -03:00
parent 472eec01c9
commit e2ee01fc61

View File

@@ -148,10 +148,12 @@ class K8sClient:
# Filter out non-running pods (build pods, completed pods, etc.)
if pod.status.phase not in ["Running", "Pending"]:
logger.debug(f"Filtering out pod {pod.metadata.name} with phase {pod.status.phase}")
continue
# Filter out build pods (pods ending with -build)
if pod.metadata.name.endswith('-build'):
logger.debug(f"Filtering out build pod {pod.metadata.name}")
continue
# Calculate total pod resources
total_cpu_requests = 0.0