Add debug logging for pod filtering
This commit is contained in:
@@ -148,10 +148,12 @@ class K8sClient:
|
|||||||
|
|
||||||
# Filter out non-running pods (build pods, completed pods, etc.)
|
# Filter out non-running pods (build pods, completed pods, etc.)
|
||||||
if pod.status.phase not in ["Running", "Pending"]:
|
if pod.status.phase not in ["Running", "Pending"]:
|
||||||
|
logger.debug(f"Filtering out pod {pod.metadata.name} with phase {pod.status.phase}")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Filter out build pods (pods ending with -build)
|
# Filter out build pods (pods ending with -build)
|
||||||
if pod.metadata.name.endswith('-build'):
|
if pod.metadata.name.endswith('-build'):
|
||||||
|
logger.debug(f"Filtering out build pod {pod.metadata.name}")
|
||||||
continue
|
continue
|
||||||
# Calculate total pod resources
|
# Calculate total pod resources
|
||||||
total_cpu_requests = 0.0
|
total_cpu_requests = 0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user