Reuse TCP connections in Reflector between resync periods.
This commit is contained in:
@@ -111,8 +111,7 @@ func (c *realRecyclerClient) WatchPod(name, namespace, resourceVersion string, s
|
||||
ListFunc: func() (runtime.Object, error) {
|
||||
return c.client.Pods(namespace).List(labels.Everything(), fieldSelector)
|
||||
},
|
||||
WatchFunc: func(resourceVersion string) (watch.Interface, error) {
|
||||
options := api.ListOptions{ResourceVersion: resourceVersion}
|
||||
WatchFunc: func(options api.ListOptions) (watch.Interface, error) {
|
||||
return c.client.Pods(namespace).Watch(labels.Everything(), fieldSelector, options)
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user