mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #131382 from liggitt/watch-list-e2e
Correctly feature-gate WatchList e2e
This commit is contained in:
commit
0d9dccfc6b
@ -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)
|
||||
|
@ -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"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user