From aca441f80e9ecbc4bdb8c6444dae98fc5ff45b74 Mon Sep 17 00:00:00 2001 From: Lukasz Szaszkiewicz Date: Tue, 22 Jul 2025 15:58:22 +0200 Subject: [PATCH] client-go/dynamic/fake: sets opts.Watch true Kubernetes-commit: b97decb7d918083e97beb7ff4e5e2052b6e63220 --- dynamic/fake/simple.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamic/fake/simple.go b/dynamic/fake/simple.go index 5d0a6f69..af024094 100644 --- a/dynamic/fake/simple.go +++ b/dynamic/fake/simple.go @@ -405,6 +405,7 @@ func (c *dynamicResourceClient) List(ctx context.Context, opts metav1.ListOption } func (c *dynamicResourceClient) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { + opts.Watch = true switch { case len(c.namespace) == 0: return c.client.Fake. @@ -413,7 +414,6 @@ func (c *dynamicResourceClient) Watch(ctx context.Context, opts metav1.ListOptio case len(c.namespace) > 0: return c.client.Fake. InvokesWatch(testing.NewWatchAction(c.resource, c.namespace, opts)) - } panic("math broke")