diff --git a/config.php b/config.php index 4c5c3bc..155f840 100644 --- a/config.php +++ b/config.php @@ -1,7 +1,7 @@ healthy" shows a * green dot even if it contains degraded/warning events along the way. - * Returns null when no state-change event is present; callers fall - * back to dominantSev in that case (e.g. rollout-only clusters). */ + * A cluster without any state transition (rollouts or image changes + * that didn't flip state) counts as "uneventful" → also green, since + * the absence of a transition means the workload stayed in whatever + * state it was in. */ function clusterOutcomeSev(events) { for (const e of events) { const m = /->\s*(\w+)\s*$/.exec(e.message || ''); @@ -307,7 +309,7 @@ function clusterOutcomeSev(events) { case 'unavailable': return 'error'; } } - return null; + return 'recovered'; } function sameDay(a, b) {