Skip to content

Commit c71c7b2

Browse files
Merge pull request #2469 from hongkailiu/co-conditions
NO-JIRA: New rules about CO's conditions
2 parents 2acafd4 + 0aed54e commit c71c7b2

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

config/v1/types_cluster_operator.go

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,21 @@ const (
153153
// is functional and available in the cluster. Available=False means at least
154154
// part of the component is non-functional, and that the condition requires
155155
// immediate administrator intervention.
156+
// A component must not report Available=False during the course of a normal upgrade.
156157
OperatorAvailable ClusterStatusConditionType = "Available"
157158

158159
// Progressing indicates that the component (operator and all configured operands)
159-
// is actively rolling out new code, propagating config changes, or otherwise
160+
// is actively rolling out new code, propagating config changes (e.g, a version change), or otherwise
160161
// moving from one steady state to another. Operators should not report
161-
// progressing when they are reconciling (without action) a previously known
162-
// state. If the observed cluster state has changed and the component is
163-
// reacting to it (scaling up for instance), Progressing should become true
162+
// Progressing when they are reconciling (without action) a previously known
163+
// state. Operators should not report Progressing only because DaemonSets owned by them
164+
// are adjusting to a new node from cluster scaleup or a node rebooting from cluster upgrade.
165+
// If the observed cluster state has changed and the component is
166+
// reacting to it (updated proxy configuration for instance), Progressing should become true
164167
// since it is moving from one steady state to another.
168+
// A component in a cluster with less than 250 nodes must complete a version
169+
// change within a limited period of time: 90 minutes for Machine Config Operator and 20 minutes for others.
170+
// Machine Config Operator is given more time as it needs to restart control plane nodes.
165171
OperatorProgressing ClusterStatusConditionType = "Progressing"
166172

167173
// Degraded indicates that the component (operator and all configured operands)
@@ -174,7 +180,7 @@ const (
174180
// Degraded because it may have a lower quality of service. A component may be
175181
// Progressing but not Degraded because the transition from one state to
176182
// another does not persist over a long enough period to report Degraded. A
177-
// component should not report Degraded during the course of a normal upgrade.
183+
// component must not report Degraded during the course of a normal upgrade.
178184
// A component may report Degraded in response to a persistent infrastructure
179185
// failure that requires eventual administrator intervention. For example, if
180186
// a control plane host is unhealthy and must be replaced. A component should

0 commit comments

Comments
 (0)