Closed zou2699 closed 3 months ago
There are no sig labels on this issue. Please add an appropriate label by using one of the following commands:
/sig <group-name>
/wg <group-name>
/committee <group-name>
Please see the group list for a listing of the SIGs, working groups, and committees available.
This issue is currently awaiting triage.
If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
/transfer kubectl /sig cli
/triage accepted /priority backlog
What happened?
The EvictPod method in the Helper struct currently uses context.TODO() when making eviction requests, which is inconsistent with the Helper.ctx used throughout the rest of the Helper methods. This inconsistency can lead to issues, particularly when using rest.Wrap, as it prevents accessing values stored in Helper.ctx.
What did you expect to happen?
Helper.EvictPod method should use Helper.ctx.
How can we reproduce it (as minimally and precisely as possible)?
this is exist in code
Anything else we need to know?
No response
Kubernetes version
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)