mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 22:12:23 +00:00
a191f2ab2b
monitorFrontendStatus's "pod" branch was re-deriving status from Kubernetes.PodPhase alone, so a CrashLoopBackOff pod (Phase=Running with unready containers) was reported as "running" even though statusFromKubernetesPod had already classified it as StatusWarning. Drop the unconditional phase=running -> "running" mapping and fall through to the unified-status switch, which surfaces StatusWarning as "degraded". Phase-based mappings for pending/unknown/succeeded/failed are kept since they still cover edge cases where the unified status is StatusOnline but phase carries useful information. Adds two regression cases in TestMonitorFrontendAndMetricHelpers: - pod warning running degraded (CrashLoopBackOff) - pod online running running (healthy baseline)