client-go
client-go copied to clipboard
Add examples of how a simple list and watch is built using client-go
- basically how to use resourceVersion correctly. Sorry if this is documented somewhere else ?
- From my understanding, we should always do a list and get the resourceVersion from the list
- then use a watch with the above resourceVersion
- if the watch fails, can we restart the watch with same resourceVersion
- if the watch succeeds , how do i get the updated resourceVersion to do the watch again ?
- I know if between list and watch , too much time elapses, the buffer can become full, in which case, watch would fail, i guess, do we need to list again there ?
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Prevent issues from auto-closing with an /lifecycle frozen comment.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale
/lifecycle frozen