Merge pull request #134327 from p0lyn0mial/watchlist-e2e-table-improve

test/e2e/apimachinery/watchlist: select only wellknown secrets for table test
This commit is contained in:
Kubernetes Prow Robot
2025-09-29 13:46:16 -07:00
committed by GitHub

View File

@@ -227,7 +227,7 @@ var _ = SIGDescribe("API Streaming (aka. WatchList)", framework.WithFeatureGate(
framework.ExpectNoError(err)
dynamicClient := dynamic.New(restClient)
opts, hasPreparedOptions, err := watchlist.PrepareWatchListOptionsFromListOptions(metav1.ListOptions{})
opts, hasPreparedOptions, err := watchlist.PrepareWatchListOptionsFromListOptions(metav1.ListOptions{LabelSelector: "watchlist=true"})
framework.ExpectNoError(err)
gomega.Expect(hasPreparedOptions).To(gomega.BeTrueBecause("it should be possible to prepare watchlist opts from an empty ListOptions"))