client-go icon indicating copy to clipboard operation
client-go copied to clipboard

Add examples of how a simple list and watch is built using client-go

Open krmayankk opened this issue 9 years ago • 2 comments

  • 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 ?

krmayankk avatar Mar 30 '17 07:03 krmayankk

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

fejta-bot avatar Dec 22 '17 18:12 fejta-bot

/lifecycle frozen

thkoch2001 avatar Dec 24 '17 10:12 thkoch2001