From 2790aee4ebc31832cb0dc97c0fc0b8e78356178e Mon Sep 17 00:00:00 2001 From: Lukasz Szaszkiewicz Date: Thu, 27 Feb 2025 12:11:47 +0100 Subject: [PATCH] client-go/gentype/fake: sets opts.Watch true Kubernetes-commit: f73f6fd2ab59c14a7379bc3086f7cc26cf9f8b4a --- gentype/fake.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gentype/fake.go b/gentype/fake.go index bcb9ca27..6ea3cbe0 100644 --- a/gentype/fake.go +++ b/gentype/fake.go @@ -183,6 +183,7 @@ func (l *alsoFakeLister[T, L]) List(ctx context.Context, opts metav1.ListOptions // Watch returns a watch.Interface that watches the requested resources. func (c *FakeClient[T]) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { + opts.Watch = true return c.Fake. InvokesWatch(testing.NewWatchActionWithOptions(c.resource, c.ns, opts)) }