test/e2e/apimachinery/watchlist: select only wellknown secrets for table test

This commit is contained in:
Lukasz Szaszkiewicz
2025-09-29 13:36:38 +02:00
parent d39b162163
commit 212a9c6a60

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