Repository navigation
fix(mock): stop ListAndWatch when the kubelet stream closes - #30
blackdragoon26 wants to merge 1 commit into
Conversation
Signed-off-by: blackdragoon26 <sankalp.jha9643@gmail.com>
|
@blackdragoon26: The label(s) DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: blackdragoon26 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
What type of PR is this?
/kind bug
What this PR does / why we need it:
ListAndWatchignored send errors and kept rebuilding the device list every ten seconds after kubelet disconnected. The handler now returns the send error and exits promptly if kubelet cancels the stream between updates.Which issue(s) this PR fixes:
Fixes #29
How this was tested:
Added regression tests for a failed send and cancellation after the first device update.
go test -race ./...passed.AI assistance was used for this PR, but personally reviewed by me.
Summary by CodeRabbit