@@ -97,6 +97,11 @@ func MonitorClusterStatus(name string, syncCh <-chan error, stopCh <-chan struct
97
97
Status : configv1 .ConditionFalse ,
98
98
LastTransitionTime : metav1 .Now (),
99
99
},
100
+ {
101
+ Type : configv1 .OperatorUpgradeable ,
102
+ Status : configv1 .ConditionFalse ,
103
+ LastTransitionTime : metav1 .Now (),
104
+ },
100
105
},
101
106
},
102
107
})
@@ -138,6 +143,10 @@ func MonitorClusterStatus(name string, syncCh <-chan error, stopCh <-chan struct
138
143
Type : configv1 .OperatorAvailable ,
139
144
Status : configv1 .ConditionTrue ,
140
145
})
146
+ setOperatorStatusCondition (& existing .Status .Conditions , configv1.ClusterOperatorStatusCondition {
147
+ Type : configv1 .OperatorUpgradeable ,
148
+ Status : configv1 .ConditionTrue ,
149
+ })
141
150
// we set the versions array when all the latest code is deployed and running - in this case,
142
151
// the sync method is responsible for guaranteeing that happens before it returns nil
143
152
if len (targetOperatorVersion ) > 0 {
@@ -172,6 +181,11 @@ func MonitorClusterStatus(name string, syncCh <-chan error, stopCh <-chan struct
172
181
Status : configv1 .ConditionFalse ,
173
182
Message : fmt .Sprintf ("Waiting to see update %s succeed" , olmversion .OLMVersion ),
174
183
})
184
+ setOperatorStatusCondition (& existing .Status .Conditions , configv1.ClusterOperatorStatusCondition {
185
+ Type : configv1 .OperatorUpgradeable ,
186
+ Status : configv1 .ConditionFalse ,
187
+ Message : "Waiting for updates to take effect" ,
188
+ })
175
189
// TODO: use % errors within a window to report available
176
190
}
177
191
0 commit comments