mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
test that controller descriptors should not be feature gated
controllers enabled by default should define feature gates in ControllerDescriptor.requiredFeatureGates and not during a descriptor registration in NewControllerDescriptors
This commit is contained in:
parent
fed11c0793
commit
1daf1b0705
@ -107,6 +107,9 @@ func TestNewControllerDescriptorsShouldNotPanic(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestNewControllerDescriptorsAlwaysReturnsDescriptorsForAllControllers(t *testing.T) {
|
||||
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, "AllAlpha", false)()
|
||||
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, "AllBeta", false)()
|
||||
|
||||
controllersWithoutFeatureGates := KnownControllers()
|
||||
|
||||
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, "AllAlpha", true)()
|
||||
|
Loading…
Reference in New Issue
Block a user