You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today we have updateStatus calls scattered throughout reconciliation. We should consider standardizing on a better pattern for this, which gives us a strong sense that it's being reliably updated.
Additionally, it might make sense to standardize the GetCondition helpers to return a zero-initialized object, rather than a *Condition which might be nil. That would allow usage like:
@evankanderson This is very peripherally related to your comment: #1118. I've managed to make SetCondition private on 2/4 types so far (the 2 harder ones).
My recent refactorings have netted us a single call to updateStatus per controller, which is essentially the first-order cleanup that this issue wanted fixed (previously we called it like it was our job!).
I believe there is further work that can be done to improve this (as @dprotaso indicates) by transitioning the implementation of this to UpdateStatus once we're on 1.11.
Activity
evankanderson commentedon Jun 8, 2018
Additionally, it might make sense to standardize the GetCondition helpers to return a zero-initialized object, rather than a
*Conditionwhich might benil. That would allow usage like:as opposed to:
dprotaso commentedon Jun 11, 2018
Also from working on the subresources PR #786 we should migrate status updates for our CRDs to use the generated
UpdateStatusclientset callie. for revision
serving/pkg/client/clientset/versioned/typed/serving/v1alpha1/revision.go
Line 37 in e1b3aae
Just need to confirm it works without the
CustomResourceSubresourcesfeature gate enabled.mattmoor commentedon Jun 11, 2018
@evankanderson This is very peripherally related to your comment: #1118. I've managed to make
SetConditionprivate on 2/4 types so far (the 2 harder ones).Always call updateStatus after Reconcile. (#1321)
mattmoor commentedon Jul 8, 2018
tl;dr I am going to close this
My recent refactorings have netted us a single call to
updateStatusper controller, which is essentially the first-order cleanup that this issue wanted fixed (previously we called it like it was our job!).I believe there is further work that can be done to improve this (as @dprotaso indicates) by transitioning the implementation of this to
UpdateStatusonce we're on 1.11.Update owners add me, rm Reto (knative#1107)