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
Extracting config.openshift.io informer factories allows to obtain the
`FeatureGate` lister early. We need to start the the config informer
factory for that but that is fine, later code can create new informers
as long as it calls `Start()` again. Retrieved `FeatureGate` can then be
used to read the featureSet enabled in the cluster and also the enabled
and disabled CVO feature gates.
This is basically identical to what CVO currently does later in
`Context.InitializeFromPayload`. For now _that_ code drives the actual
CVO behavior, not the values discovered by the early code. The change to
switch the CVO behavior from respecting the late code to the early code
will follow; this commit just sets the stage for that and allows testing
the early informer start.
klog.Infof("FeatureGate found in cluster, using its feature set %q at startup", startingFeatureSet)
283
+
returntrue, nil
284
+
}
285
+
}); err!=nil {
286
+
iflastError!=nil {
287
+
return"", nil, lastError
288
+
}
289
+
return"", nil, err
290
+
}
291
+
292
+
ifcvoGates.UnknownVersion() {
293
+
klog.Warningf("CVO features for version %s could not be detected from FeatureGate; will use defaults plus special UnknownVersion feature gate", cvoOpenShiftVersion)
294
+
}
295
+
klog.Infof("CVO features for version %s enabled at startup: %+v", cvoOpenShiftVersion, cvoGates)
242
296
297
+
returnstartingFeatureSet, &cvoGates, nil
243
298
}
244
299
245
300
// run launches a number of goroutines to handle manifest application,
0 commit comments