mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-26 23:17:34 +00:00
client-go/gentype/fake: sets opts.Watch true
Kubernetes-commit: f73f6fd2ab59c14a7379bc3086f7cc26cf9f8b4a
This commit is contained in:
parent
ca10b28dd3
commit
2790aee4eb
@ -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