Files
kubevela/pkg
Anurag PappulaandGitHub 24ae77d39f Fix(controller): set Ready condition to False on reconcile failure (#7168)
* fix(controller): set Ready condition to False on reconcile failure

endWithNegativeCondition set only the failing sub-condition (e.g.
Parsed=False/ReconcileError) but left the rollup Ready condition
unchanged, so a reconcile failure left Ready at True/ReconcileSuccess
from the last successful reconcile. Health checkers polling Ready as
the application health signal missed the failure.

Also set Ready=False/ReconcileError alongside the sub-condition with
the same message, so the rollup reflects the failure on every path
that ends through endWithNegativeCondition.

Fixes #7164

Signed-off-by: Anuragp22 <anuragp2003b@gmail.com>

* test(controller): assert Ready condition propagates sub-condition message

Address cubic review on #7168: verify the persisted Ready condition's
Message field equals the failing sub-condition's Message, so a future
refactor that drops the message propagation in endWithNegativeCondition
gets caught by the test.

Signed-off-by: Anuragp22 <anuragp2003b@gmail.com>

---------

Signed-off-by: Anuragp22 <anuragp2003b@gmail.com>
2026-06-03 07:36:33 -07:00
..
2026-03-18 21:11:22 -07:00
2026-05-22 09:09:55 -07:00
2026-05-22 09:09:55 -07:00