Enable watch bookmarks in reflector

Kubernetes-commit: 175c07f4e6d3a59bb6d9870c4a4a78c41940b2dd
This commit is contained in:
wojtekt 2019-07-04 13:12:08 +02:00 committed by Kubernetes Publisher
parent e8d4ff64b7
commit a553c2c2cc

View File

@ -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)