mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
Merge e4ca6eb29f into e0e827dab0
This commit is contained in:
commit
0c35dc6880
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue