Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand the Conditions duck type to also encompass ObservedGeneration. (…
…#324) With this, the expectation is that folks can embed the following in the status of their resource: ```go type FooStatus struct { duckv1alpha1.Status `json:",inline"` // other fields } ``` `ObservedGeneration` is important to the usefulness of our standard conditions because `{Ready,Succeeded}: True` is only meaningful when `.status.observedGeneration == .metadata.generation`. When `.status.observedGeneration != .metadata.generation` it indicates that the controller has not yet attempted to reconcile a change in the desired state of the world (aka `spec:`).
- Loading branch information
1 parent
35d3a1b
commit 374ae9e
Showing
3 changed files
with
34 additions
and
38 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.