mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-27 07:28:14 +00:00
Merge pull request #130470 from p0lyn0mial/upstream-fake-client-opts-watch
client-go/gentype/fake: sets opts.Watch true Kubernetes-commit: 4468565250c940bbf70c2bad07f2aad387454be1
This commit is contained in:
commit
a48b937483
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user