-
Notifications
You must be signed in to change notification settings - Fork 669
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 option to ignore pods with PVCs from eviction #481
Conversation
/hold |
2f8a7ab
to
5433775
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.
/hold cancel
make gen is fixed now
a8cc407
to
615ce3a
Compare
/kind feature |
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 case for the new flag? In any of the strategies you choose.
Wrt. ignore
prefix, we already have ExcludeOwnerKinds
and Exclude
namespaces fields. Do you think it would make sense to align the new field with existing ones? I.e. excludePVCPods
? Even IgnorePVCPods
sounds ok to me. Just a thought.
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.
I think we should update README to include the new flag
615ce3a
to
8313d0f
Compare
Updated this to remove the extra line and added the flag to readme |
Unit test please (to validate user facing change) |
8313d0f
to
c1a63a5
Compare
Sorry, forgot the unit test. Added to |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: damemi, lixiang233 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 |
Minor nit: could we rename the option from |
Hi @jsravn, thanks for the feedback. The motivation behind naming this I hope this clears up the confusion. At this point, I would personally prefer not to make that change since it would be a full invert of the behavior. However if others disagree I am open to the consideration |
Add option to ignore pods with PVCs from eviction
Fixes #96