Change WaitForNamedCacheSync to WaitForNamedCacheSyncWithContext#133904
Conversation
|
Hi @aditigupta96. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
itzPranshul
left a comment
There was a problem hiding this comment.
As i understand what the issue says is to add alternative APIs<something>WithContext while existing the current one for downstream consumers. Also this change wrapping the c.runWorker() inside a anonymous function seems to ignore the ctx.It technically uses UntilWithContext, but the worker itself is still context-unaware. Althrough i might be wrong about this
b59d102 to
2367323
Compare
This is part of the ongoing effort to adopt contextual logging and utilities throughout the codebase. Contributes to kubernetes#126379 Signed-off-by: Aditi Gupta <aditigpta@google.com>
2367323 to
7d14367
Compare
|
/ok-to-test |
|
/cc @pohly I'm a bit confused about the function |
|
@Jefftree There's no need to manually add the controller name to the context. Code Reference: https://github.com/kubernetes/kubernetes/blob/release-1.34/cmd/kube-controller-manager/app/controllermanager.go#L753 |
|
/assign stlaz |
|
/assign sig-apps-approvers |
|
@aditigupta96: GitHub didn't allow me to assign the following users: sig-apps-approvers. Note that only kubernetes members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. 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. |
|
LGTM label has been added. DetailsGit tree hash: 9be8907e943b62ad84727bc950d25b659dfe2426 |
|
/triage accepted |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aditigupta96, janetkuo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/release-note-none |
|
/retest |
|
@aditigupta96: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions 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. I understand the commands that are listed here. |
|
/retest |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Change WaitForNamedCacheSync to WaitForNamedCacheSyncWithContext.
Which issue(s) this PR is related to:
Contributes to #126379
Special notes for your reviewer:
Does this PR introduce a user-facing change?