-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further tidying of runtime and meta elements
- Simplification of `*Reason` constants in `meta` API package. They now no longer assume to be tied to a specific condition type, and can be used as "generic" reasons within the context of a type. This includes the removal of the `DependencyNotReady` reason. Instead, API objects should have a dedicated condition type that reflects the an observation of the state of the dependencies combined with one of the generic reasons, or a custom one. - Change of `ObjectWithStatusConditions` interface to `ObjectWithConditions`, and introduction of `ObjectWithConditionsSetter`. This interface is further expanded by the `conditions` package to perform getter and setter operations on API type structures that adhere to the interface. - Alignment of method names in the `Metrics` helper, and introduction of `RecordReconciling` and `RecordStalled` methods to provide shortcuts for the generic `meta` condition types. - Replacement of the private interfaces in the `controller` helpers with well-known interfaces for the context they are used in, or are already expected to adhere to. Signed-off-by: Hidde Beydals <[email protected]>
- Loading branch information
Showing
7 changed files
with
50 additions
and
70 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
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