Files
kubevela/references/cli
Kampit Ojha ca9152164f Fix: vela status reports Healthy on workflowFailed with empty services (#7233)
* Fix: vela status reports Healthy on workflowFailed with empty services

getAppHealth returned true when status.services was empty (vacuous truth),
so failed apps that never produced component status showed Healthy: .
Treat terminal/unhealthy phases, failed workflow steps, and empty services
as unhealthy, with unit tests.

Signed-off-by: kampitojha <kampitojha@users.noreply.github.com>

* Style: fix import order in status_health_test.go

Signed-off-by: kampitojha <kampitojha@users.noreply.github.com>

* Fix: treat failed workflow substeps as unhealthy in vela status

Address review feedback: scan SubStepsStatus for failed phases so
step-group workflows do not report Healthy when a nested substep failed.

Signed-off-by: kampitojha <kampitojha@users.noreply.github.com>

* Fix: satisfy exhaustive linter on ApplicationPhase switch

Add default case so golangci exhaustive does not fail on intentional
partial phase handling in getAppHealth.

Signed-off-by: kampitojha <kampitojha@users.noreply.github.com>

---------

Signed-off-by: kampitojha <kampitojha@users.noreply.github.com>
Co-authored-by: kampitojha <kampitojha@users.noreply.github.com>
2026-07-14 16:10:48 +01:00
..
2026-02-10 15:00:44 +00:00
2024-07-27 17:44:20 +08:00
2024-07-27 17:44:20 +08:00
2026-02-10 15:00:44 +00:00
2024-07-27 17:44:20 +08:00