@@ -221,6 +221,7 @@ func (c *Controller) merge(existing *configv1.ClusterOperator) *configv1.Cluster
221
221
setOperatorStatusCondition (& existing .Status .Conditions , configv1.ClusterOperatorStatusCondition {
222
222
Type : configv1 .OperatorDegraded ,
223
223
Status : configv1 .ConditionFalse ,
224
+ Reason : "AsExpected" ,
224
225
})
225
226
}
226
227
@@ -237,6 +238,7 @@ func (c *Controller) merge(existing *configv1.ClusterOperator) *configv1.Cluster
237
238
setOperatorStatusCondition (& existing .Status .Conditions , configv1.ClusterOperatorStatusCondition {
238
239
Type : OperatorDisabled ,
239
240
Status : configv1 .ConditionFalse ,
241
+ Reason : "AsExpected" ,
240
242
})
241
243
}
242
244
@@ -253,6 +255,7 @@ func (c *Controller) merge(existing *configv1.ClusterOperator) *configv1.Cluster
253
255
setOperatorStatusCondition (& existing .Status .Conditions , configv1.ClusterOperatorStatusCondition {
254
256
Type : configv1 .OperatorDegraded ,
255
257
Status : configv1 .ConditionFalse ,
258
+ Reason : "AsExpected" ,
256
259
})
257
260
}
258
261
@@ -273,6 +276,7 @@ func (c *Controller) merge(existing *configv1.ClusterOperator) *configv1.Cluster
273
276
setOperatorStatusCondition (& existing .Status .Conditions , configv1.ClusterOperatorStatusCondition {
274
277
Type : configv1 .OperatorAvailable ,
275
278
Status : configv1 .ConditionTrue ,
279
+ Reason : "AsExpected" ,
276
280
})
277
281
278
282
// update the Progressing condition with a summary of the current state
@@ -285,6 +289,7 @@ func (c *Controller) merge(existing *configv1.ClusterOperator) *configv1.Cluster
285
289
setOperatorStatusCondition (& existing .Status .Conditions , configv1.ClusterOperatorStatusCondition {
286
290
Type : configv1 .OperatorProgressing ,
287
291
Status : configv1 .ConditionTrue ,
292
+ Reason : "Initializing" ,
288
293
Message : "Initializing the operator" ,
289
294
})
290
295
}
@@ -294,6 +299,7 @@ func (c *Controller) merge(existing *configv1.ClusterOperator) *configv1.Cluster
294
299
setOperatorStatusCondition (& existing .Status .Conditions , configv1.ClusterOperatorStatusCondition {
295
300
Type : configv1 .OperatorProgressing ,
296
301
Status : configv1 .ConditionFalse ,
302
+ Reason : "Degraded" ,
297
303
Message : "An error has occurred" ,
298
304
})
299
305
@@ -312,6 +318,7 @@ func (c *Controller) merge(existing *configv1.ClusterOperator) *configv1.Cluster
312
318
setOperatorStatusCondition (& existing .Status .Conditions , configv1.ClusterOperatorStatusCondition {
313
319
Type : configv1 .OperatorProgressing ,
314
320
Status : configv1 .ConditionFalse ,
321
+ Reason : "AsExpected" ,
315
322
Message : "Monitoring the cluster" ,
316
323
})
317
324
}
0 commit comments