-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patching reconciler ensures non-empty status reason
Status conditions must have non-empty reason, otherwise the patch operation is rejected by kubernetes. When constructing the `NotReadyError`, a reconciler might set the cause but not be able to determine the reason. Instead of trying to adhere to always setting the reason in the controllers, the patching reconciler now ensures that it is defaulted to `Unknown`. While being here, move the `NotReadyError` type into the `reconcile.go` file - it logically makes sense to be there
- Loading branch information
1 parent
093fa0b
commit 81f232a
Showing
3 changed files
with
125 additions
and
59 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