-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: restart the merge controllers on conflict
Fixes #3861 What this change effectively does is that it changes immediate reconcile request to an error return, so that controller will be restarted with a backoff. More details: * root cause of the update/teardown conflict is that the finalizer is still pending on the tearing down resource * finalizer might not be removed immediately, e.g. if the controller which put the finalizer is itself in the crash loop * if the merge controller queues reconcile immediately, it restarts itself, but the finalizer is still there, so it once again goes into reconcile loop and that goes forever until the finalizer is removed, so instead if the controller fails, it will be restarted with exponential backoff lowering the load on the system Change is validated with the unit-tests reproducing the conflict. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
- Loading branch information
Showing
3 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters