mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-17 15:27:42 +00:00
The test/e2e suite has never supported feature gates: - it cannot discover at runtime how the cluster is configured - its --feature-gates parameter had no effect Despite that, tests were written that used e2eskipper.SkipUnlessFeatureGateEnabled even though that function then only checked the default feature gate state. To catch such mistakes, e2e tests suites now must explicitly enable feature gate checking via e2eskipper.InitFeatureGates. They also must register their own command line flag. When that is not done, then using SkipUnlessFeatureGateEnabled or SkipIfFeatureGateEnabled leads to a test failure. test/e2e_node does both and therefore continues to work as before.