-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Add missing unit test for resource resize policy defaulting #116684
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
Add missing unit test for resource resize policy defaulting #116684
Conversation
|
/sig node |
|
/milestone v1.27 |
|
/triage accepted this is a test-only follow up for KEP with approved exception request |
pkg/apis/core/v1/defaults_test.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a test for some other resource name other than memory and CPU
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added ephemeral storage resource in a few different combinations. Please review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
LGTM label has been added. Git tree hash: 3e2358537d09692383f5efb959475db2c73b38a8
|
b39830c to
cb94405
Compare
|
/assign @sftim |
|
/assign @pacoxu |
|
/assign @ramrodo |
|
Were api/openapi-spec/swagger.json and api/openapi-spec/v3/apis__storage.k8s.io__v1beta1_openapi.json picked up by mistake? Changelog and unit tests lgtm |
k8s-verify job failed and failure logs asked to run update-openapi-spec. https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/116684/pull-kubernetes-verify/1636573699786149888 It is unrelated to my changes but without it CI blocks the PR. |
api/openapi-spec/swagger.json
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fixed in #116705 and you may wait for that change to be merged and rebase with the latest code later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rebased and updated, thanks.
9976b5a to
0c2c132
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
/lgtm
/approve
|
LGTM label has been added. Git tree hash: ff5312b5b13e16dbbe45274f857e3db9824b338c
|
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SergeyKanzhelev, thockin, vinaykul, xmudrii 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it: This PR adds a missed unit test for PR #116119 that added resize policy defaulting for pod resource in-place resize feature.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change? no
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/assign @thockin