-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature][Hotfix] Add observedGeneration to the status of CRDs #979
Conversation
cc @gariepyalex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, other than a few nits, this change looks good to me!
Out of curiosity, is the ObjectMeta.Generation
set by the user or is it autogenerated by the controller?
Co-authored-by: shrekris-anyscale <[email protected]> Signed-off-by: Kai-Hsun Chen <[email protected]>
Co-authored-by: shrekris-anyscale <[email protected]> Signed-off-by: Kai-Hsun Chen <[email protected]>
|
…roject#979) Add observedGeneration to the status of CRDs
Why are these changes needed?
observedGeneration
is a common pattern in Kubernetes to determine whether the current status is out-of-date or not.Good article: Kubernetes operator best practices: Implementing observedGeneration
StatefulSet uses
ObservedGeneration
to determine whether update status or not.However, this PR does not use
observedGeneration
to do anything because:The main motivation for this PR is to unblock Shopify. Other works will be included in the release v0.6.0.
ObservedGeneration definition at this moment
ObservedGeneration
in this PR only promises thatObservedGeneration <= Generation
.Test
Related issue number
Hotfix for #916
Checks