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
Replace DefaultComponentGlobalsRegistry with new instance of componentGlobalsRegistry in test api server.
Signed-off-by: Siyuan Zhang <[email protected]>
move kube effective version validation out of component base.
Signed-off-by: Siyuan Zhang <[email protected]>
move DefaultComponentGlobalsRegistry out of component base.
Signed-off-by: Siyuan Zhang <[email protected]>
move ComponentGlobalsRegistry out of featuregate pkg.
Signed-off-by: Siyuan Zhang <[email protected]>
remove usage of DefaultComponentGlobalsRegistry in test files.
Signed-off-by: Siyuan Zhang <[email protected]>
change non-test DefaultKubeEffectiveVersion to use DefaultBuildEffectiveVersion.
Signed-off-by: Siyuan Zhang <[email protected]>
Restore useDefaultBuildBinaryVersion in effective version.
Signed-off-by: Siyuan Zhang <[email protected]>
rename DefaultKubeEffectiveVersion to DefaultKubeEffectiveVersionForTest.
Signed-off-by: Siyuan Zhang <[email protected]>
pass options.ComponentGlobalsRegistry into config for controller manager and scheduler.
Signed-off-by: Siyuan Zhang <[email protected]>
Pass apiserver effective version to DefaultResourceEncodingConfig.
Signed-off-by: Siyuan Zhang <[email protected]>
change statusz registry to take effective version from the components.
Signed-off-by: Siyuan Zhang <[email protected]>
Address review comments
Signed-off-by: Siyuan Zhang <[email protected]>
update vendor
Signed-off-by: Siyuan Zhang <[email protected]>
returnresult, fmt.Errorf("%w\nIf you are using SetFeatureGate*DuringTest, try using --emulated-version and --feature-gates flags instead", err)
364
+
}
365
+
// If the local ComponentGlobalsRegistry is changed by the flags,
366
+
// we need to copy the new feature values back to the DefaultFeatureGate because most feature checks still use the DefaultFeatureGate.
367
+
// We cannot directly use DefaultFeatureGate in ComponentGlobalsRegistry because the changes done by ComponentGlobalsRegistry.Set() will not be undone at the end of the test.
0 commit comments