Skip to content

fix: return error immediately on failed reconciliation status#5692

Open
Aman-Cool wants to merge 1 commit intofluxcd:mainfrom
Aman-Cool:fix/reconcile-fail-fast-v2
Open

fix: return error immediately on failed reconciliation status#5692
Aman-Cool wants to merge 1 commit intofluxcd:mainfrom
Aman-Cool:fix/reconcile-fail-fast-v2

Conversation

@Aman-Cool
Copy link
Contributor

Flux reconcile does not fail fast on Failed status

flux reconcile does not fail fast when a resource is already in Failed status.

The polling condition treats FailedStatus the same as InProgressStatus, so the command waits until the full timeout (default 5 minutes) before reporting an error.

This causes unnecessary delays and poor UX. The fix is to return an error for terminal failure states, matching the behavior of isObjectReady().

@Aman-Cool
Copy link
Contributor Author

@matheuscscp @stefanprodan ,This makes flux reconcile fail fast when a resource is already in Failed status, instead of waiting for the full timeout. It aligns the behavior with isObjectReady() and improves CLI UX without affecting successful reconciliations.

Copy link
Member

@matheuscscp matheuscscp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@matheuscscp
Copy link
Member

Please squash

Co-authored-by: Matheus Pimenta <matheuscscp@gmail.com>
Signed-off-by: Aman-Cool <aman017102007@gmail.com>
@Aman-Cool Aman-Cool force-pushed the fix/reconcile-fail-fast-v2 branch from bd3f10b to 0a29617 Compare January 26, 2026 17:08
@Aman-Cool
Copy link
Contributor Author

@matheuscscp , Squashed into a single commit. All checks are green.

@Aman-Cool
Copy link
Contributor Author

@stefanprodan ,Please see it when you have time, happy to help if it needs any updates. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants