mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-12 22:49:23 +00:00
Enable watch bookmarks in reflector
Kubernetes-commit: 175c07f4e6d3a59bb6d9870c4a4a78c41940b2dd
This commit is contained in:
parent
e8d4ff64b7
commit
a553c2c2cc
3
tools/cache/reflector.go
vendored
3
tools/cache/reflector.go
vendored
@ -268,8 +268,7 @@ func (r *Reflector) ListAndWatch(stopCh <-chan struct{}) error {
|
||||
// To reduce load on kube-apiserver on watch restarts, you may enable watch bookmarks.
|
||||
// Reflector doesn't assume bookmarks are returned at all (if the server do not support
|
||||
// watch bookmarks, it will ignore this field).
|
||||
// Disabled in Alpha release of watch bookmarks feature.
|
||||
AllowWatchBookmarks: false,
|
||||
AllowWatchBookmarks: true,
|
||||
}
|
||||
|
||||
w, err := r.listerWatcher.Watch(options)
|
||||
|
Loading…
Reference in New Issue
Block a user