-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
operator v1: don't return both result and error
Controller-runtime forbids returning both result and error. However, ar.Ensure() code provoked such cases; because it reconciles multiple "inner" resources, and some of them might return an error, in addition to some other returning a ctrl.Result. to over come this, ar.Ensure now makes the deliberate choice to prioritize errors - if any non-requeue error is returned by an attached resource, it will return just the error, and ignore the ctrl.Result. in addition, one case - where a STS cannot reconcile, because "the other STS" is being decommissioned - was changed to not return an error. It's not an error we need to report, it's really just an ask for a requeue to make sure it gets reconciled, after the condition has settled.
- Loading branch information
Showing
3 changed files
with
19 additions
and
7 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