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
pkg/controller/status/status: Set reasons for conditions
We've been light on reasons for expected conditions like
Progressing=False since 80ab923 (Initial support operator commit,
2019-04-02). But if we feel like we have a message we want to set to
help humans understand the condition, we should be setting a reason
string for machines too. AsExpected follows the library-go precedent
[1].
The "Degraded" reason I'm adding here isn't a great fit for a
progressing reason, but does match the current logic used to set
Progressing=True. The insights operator doesn't actually supply any
in-cluster APIs beyond ClusterOperator as far as I can tell, so it's
not clear to me what sort of progressing it would do except its
internal intialization (which I give a new "Initializing" reason).
But adding an odd reason seemed easy enough, and we can always circle
back later and remove this Progressing=False case if we decide we
don't need it.
[1]: https://github.com/openshift/library-go/blob/94c59dec54be25c8527e51e8c0a885712aeb01b5/pkg/operator/status/condition.go#L67
0 commit comments