-
Notifications
You must be signed in to change notification settings - Fork 690
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
feature: add IgnorePodsWithResourceClaims parameter for configuration #1603
base: master
Are you sure you want to change the base?
Conversation
23b925f
to
4c25931
Compare
041c1c1
to
c919367
Compare
/retest |
@googs1025 can you expand on your use-case a bit more? Also, note that README and chart values.yaml will need to be updated |
/retest |
c919367
to
6c717c5
Compare
|
6c717c5
to
6a8b875
Compare
/retest |
/retest-required |
1 similar comment
/retest-required |
a8b429a
to
41ba74d
Compare
Yes, of course. We now have the DRA feature in kubernetes. We are also testing it in our internal environment. We hope that pods with resourceclaims will not be evicted frequently (because of the device). Therefore, we hope to have an ignorePodsWithResourceClaims param like the ignorePvcPods param to selectively ignore such pods. |
/lgtm |
@@ -57,6 +57,9 @@ type DeschedulerConfiguration struct { | |||
// IgnorePVCPods sets whether PVC pods should be allowed to be evicted | |||
IgnorePVCPods bool `json:"ignorePvcPods,omitempty"` | |||
|
|||
// IgnorePodsWithResourceClaims sets whether pods using resource claims should be allowed to be evicted | |||
IgnorePodsWithResourceClaims bool `json:"ignorePodsWithResourceClaims"` |
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.
other fields use omitempty
is that needed here?
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.
whoops... I miss that.
fixed
41ba74d
to
af85aea
Compare
New changes are detected. LGTM label has been removed. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
now we are gradually supporting DRA features
like
IgnorePvcPods
param, we sometime also don't want Pods with ResourceClaims to be rescheduled frequently.