Feature-gate watchlist e2e

This commit is contained in:
Jordan Liggitt 2025-04-19 17:18:31 -04:00
parent 66931f07d9
commit 95b926c93a
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View File

@ -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)

View File

@ -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"))