-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Add safe to evict option to capacity buffers injected fake pods #8864
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
base: master
Are you sure you want to change the base?
Add safe to evict option to capacity buffers injected fake pods #8864
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: abdelrahman882 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 |
61a4b46 to
0cee38c
Compare
0cee38c to
d5eed0e
Compare
| if pod.Annotations == nil { | ||
| pod.Annotations = make(map[string]string, 1) | ||
| } | ||
| pod.Annotations[drain.PodSafeToEvictKey] = "true" |
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.
Because we're passing in a static true for this option, this represents a change. We're O.K. that given that this functionality hasn't yet been released?
|
/test pull-cluster-autoscaler-e2e-azure-master |
elmiko
left a comment
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.
code generally looks good to me, but i think we should have some unit tests to exercise the true option.
What type of PR is this?
/kind feature
What this PR does / why we need it:
Capacity buffer injects fake pods into CA loop, these pods are meant to create some capacity for user workload, this change allows forcing adding safe-to-evict annotation to the pods so these fake pods are drainable and they do not block any logic requires draining them.
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?