This commit is contained in:
Tyler 2026-04-21 08:26:34 +02:00 committed by GitHub
commit 0c35dc6880
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2674,10 +2674,12 @@ func checkResourceStatus(watch watchOpts, healthStatus string, syncStatus string
return false
}
// If resource does not have health status, we default to healthy.
hasHealthCheck := healthStatus != ""
healthBeingChecked := watch.suspended || watch.health || watch.degraded
healthCheckPassed := true
if healthBeingChecked {
if healthBeingChecked && hasHealthCheck {
healthCheckPassed = false
if watch.health {
healthCheckPassed = healthCheckPassed || healthStatus == string(health.HealthStatusHealthy)