Closed rudoi closed 4 years ago
/milestone v0.3.x /help /priority important-longterm /area api
@vincepri: This request has been marked as needing help from a contributor.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help
command.
CAPI conditions will have an ObservedGeneration field, so will need to be done as part of / prior to that work.
/assign
Hmm, this seems more nuanced than at first glance. What are the semantics of when it is updated? Only when a reconciliation is "complete"/"successful"?
And do we want to do this for every object? KubeadmConfigTemplate
?
being the generation number linked to changes to the object's spec, IMO we should add the field to any object that allows spec mutation
Templates don't have a status subresource today
/reopen
We need to add the code to start updating ObservedGeneration
once #3118 has merged using the new WithStatusObservedGeneration
option there.
@benmoss: Reopened this issue.
/milestone v0.3.7
/priority important-soon
/assign /lifecycle active
User Story
Many Kubernetes objects have an
observedGeneration
in the status that enables comparison against.metadata.generation
. This is helpful for implementing other controllers against CAPI types that want to wait until changes are reconciled by the CAPI controllers before jumping in and doing their work.Detailed Description
Add
.status.observedGeneration
and have each controller set this value from.metadata.generation
at the end of reconciliation./kind feature