-
Notifications
You must be signed in to change notification settings - Fork 40.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set api version and action name in fake evictions #69035
Conversation
/kind bug |
/lgtm |
/assign @caesarxuchao |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: caesarxuchao, dmathieu, yue9944882 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Review the full test history for this PR. Silence the bot with an |
/sig testing |
What this PR does / why we need it:
The mock for evicting a Pod doesn't set the API version, preventing us from finding the pod to evict later on.
We try finding every pods matching the
GroupVersionResource
here. So not setting any API version gives us 404s all the time.This change also sets the pod name to evict as the action name, so we can properly fetch the right Pod.
Special notes for your reviewer:
The fake package has absolutely no tests. So I haven't written any here. It feels like setting up tests here would be quite useful.
Provided with a bit of guidance, I wouldn't mind working on that.
Release note: