diff --git a/test/e2e/apimachinery/watchlist.go b/test/e2e/apimachinery/watchlist.go index 20ca3527cab..da50cdbf616 100644 --- a/test/e2e/apimachinery/watchlist.go +++ b/test/e2e/apimachinery/watchlist.go @@ -35,6 +35,7 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/apimachinery/pkg/watch" + "k8s.io/apiserver/pkg/features" utilfeature "k8s.io/apiserver/pkg/util/feature" "k8s.io/client-go/dynamic" clientfeatures "k8s.io/client-go/features" @@ -48,7 +49,7 @@ import ( "k8s.io/kubernetes/test/e2e/framework" ) -var _ = SIGDescribe("API Streaming (aka. WatchList)", framework.WithSerial(), func() { +var _ = SIGDescribe("API Streaming (aka. WatchList)", framework.WithFeatureGate(features.WatchList), framework.WithSerial(), func() { f := framework.NewDefaultFramework("watchlist") ginkgo.It("should be requested by informers when WatchListClient is enabled", func(ctx context.Context) { featuregatetesting.SetFeatureGateDuringTest(ginkgo.GinkgoTB(), utilfeature.DefaultFeatureGate, featuregate.Feature(clientfeatures.WatchListClient), true) diff --git a/test/e2e/feature/feature.go b/test/e2e/feature/feature.go index 422b5988e21..049db7c25f6 100644 --- a/test/e2e/feature/feature.go +++ b/test/e2e/feature/feature.go @@ -557,9 +557,6 @@ var ( // TODO: document the feature (owning SIG, when to use this feature for a test) Vsphere = framework.WithFeature(framework.ValidFeatures.Add("vsphere")) - // TODO: document the feature (owning SIG, when to use this feature for a test) - WatchList = framework.WithFeature(framework.ValidFeatures.Add("WatchList")) - // TODO: document the feature (owning SIG, when to use this feature for a test) Windows = framework.WithFeature(framework.ValidFeatures.Add("Windows"))