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
feat(NodeVolumeLimits): return Skip in PreFilter #115398
feat(NodeVolumeLimits): return Skip in PreFilter #115398
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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/test-infra repository. |
Hi @tangwz. 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. 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/test-infra repository. |
/ok-to-test |
/assign |
ping @tangwz can you plz address the test failures at first? |
/ok-to-test |
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
@kerthcet PTAL |
/assign |
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.
Thank you!
Just few nits!
/cc |
This needs a release note, because you are adding a PreFilter endpoint. |
d57fd06
to
07905f0
Compare
If this PR ready to by merged, I'll squash it. |
It's ok to squash as long as there were no intermediate reviews. But also it's fine to leave it for 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.
LGTM with the logics, but left some comments with tests.
Secret: &v1.SecretVolumeSource{}, | ||
}, | ||
}).Obj() | ||
notOnlyConfigmapAndSecretPod = st.MakePod().PVC("pvcWithDeletedPV").Volume(v1.Volume{ |
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.
pvcPodWithConfigmapAndSecret
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.
Also add another two cases covering the PerFilter.
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.
Already has Ephemeral.
pkg/scheduler/framework/plugins/nodevolumelimits/non_csi_test.go
Outdated
Show resolved
Hide resolved
ed9efa7
to
5ede346
Compare
/retest |
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 we move oneVolPod
to TestEBSLimits
as well? Totally LGTM, you can squash now. And sorry for the delayed response because of the kubecon.
/assign @alculquicondor
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.
/approve
Leaving LGTM to @kerthcet
pkg/scheduler/framework/plugins/nodevolumelimits/non_csi_test.go
Outdated
Show resolved
Hide resolved
|
||
if gotPreFilterStatus.Code() != framework.Skip { | ||
gotStatus := p.Filter(context.Background(), nil, test.newPod, node) | ||
if !reflect.DeepEqual(gotStatus, test.wantStatus) { |
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.
also refactor these to cmp.Diff
in a follow up.
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.
That's ok, I will do.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, tangwz 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 |
e464ae7
to
8f99e33
Compare
/retest |
pkg/scheduler/framework/plugins/nodevolumelimits/non_csi_test.go
Outdated
Show resolved
Hide resolved
8f99e33
to
8ed8618
Compare
@kerthcet PTAL |
/lgtm |
LGTM label has been added. Git tree hash: 7d5aa2eea43979c4b86e9ac0e2bf1ae14877f73e
|
/retest |
What type of PR is this?
/kind feature
What this PR does / why we need it:
return Skip in nodevolumelimits PreFilter when the pods that only use secrets and configmaps.
Which issue(s) this PR fixes:
Fixes #114143 #114399
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: