-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
controller: consolidate status update logic (#915)
Previously, Status updates could fail due to version conflicts. This commit pulls all status update logic into a helper function that utilizes retry.RetryOnConflict to ensure that .Status updates get persisted in spite of resource version changes. Additionally, this commit removes an early bailout if the controller detects a divergence in the currently loaded resource and the API version. This change should have no notable affects as it took place after any actors ran. It also fixes a buglet that overwrote the reconcilers context, negating the maximum runtime for a single reconcilation loop.
- Loading branch information
Showing
4 changed files
with
18 additions
and
30 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
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