feat: resilient Watch RPC with reconnect and resourceVersion tracking#7188
Merged
AdilFayyaz merged 2 commits intov2from Apr 21, 2026
Merged
feat: resilient Watch RPC with reconnect and resourceVersion tracking#7188AdilFayyaz merged 2 commits intov2from
AdilFayyaz merged 2 commits intov2from
Conversation
This was referenced Apr 9, 2026
Draft
pingsutw
reviewed
Apr 9, 2026
3 tasks
5ab4209 to
6e12f57
Compare
Signed-off-by: M. Adil Fayyaz <62440954+AdilFayyaz@users.noreply.github.com>
Signed-off-by: M. Adil Fayyaz <62440954+AdilFayyaz@users.noreply.github.com>
9d4ac19 to
c534e79
Compare
pingsutw
approved these changes
Apr 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tracking issue
Depends on: #7176, #7175, #7166
Why are the changes needed?
K8s watches time out every ~5 minutes by default. The previous implementation closed the client's stream silently on disconnect with no reconnect, making Watch unreliable for long-lived connections.
What changes were proposed in this pull request?
How was this patch tested?
channel close reconnect, Error event reconnect, Bookmark RV propagation to next watch call, exponential backoff timing, ctx cancel stops the goroutine, initial watch error surfaces synchronously
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link
main