k8s icon indicating copy to clipboard operation
k8s copied to clipboard

Store and send resourceVersion in watch_list/watcher

Open oyvindio opened this issue 5 years ago • 1 comments

The watch loop in Watcher should send the newest resourceVersion it has seen when restarting the watch connection to reduce pressure on the apiserver. See https://kubernetes.io/docs/reference/using-api/api-concepts/#efficient-detection-of-changes for suggested behavior.

This mechanism should probably be extended to support the watch bookmark feature (https://kubernetes.io/docs/reference/using-api/api-concepts/#watch-bookmarks) if available (since Kubernetes 1.16).

oyvindio avatar Oct 18 '19 11:10 oyvindio

Watch bookmark KEP: https://github.com/kubernetes/enhancements/blob/239b0c8cc09895b63151806251d7f6c2d2c3aa2f/keps/sig-api-machinery/20190206-watch-bookmark.md

oyvindio avatar Oct 18 '19 11:10 oyvindio