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
OTA-1531: Rework error handling in FeatureGate processing
- The `FeatureGate` GET is now made over an informer client which is
backed by a cache, so polling to smooth over non-isNotFound errors no
longer makes sense. The GET runs after a cache sync succeeded earlier
so no errors are expected (and if an error happens, it is unlikely to
be resolved by a retry)
- Waiting for cache sync was not bounded; impose a 30s timeout on startup
(this is similar to the deadline imposed by the poll before we started
to use the informer client)
- Return pointers from `processInitialFeatureGate` to make return errors
easier
klog.Infof("FeatureGate found in cluster, using its feature set %q at startup", startingFeatureSet)
289
280
}
290
281
291
282
ifcvoGates.UnknownVersion() {
292
283
klog.Warningf("CVO features for version %s could not be detected from FeatureGate; will use defaults plus special UnknownVersion feature gate", cvoOpenShiftVersion)
293
284
}
294
285
klog.Infof("CVO features for version %s enabled at startup: %+v", cvoOpenShiftVersion, cvoGates)
295
286
296
-
returnstartingFeatureSet, cvoGates, nil
287
+
return&startingFeatureSet, &cvoGates, nil
297
288
}
298
289
299
290
// run launches a number of goroutines to handle manifest application,
0 commit comments