-
Notifications
You must be signed in to change notification settings - Fork 219
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: nodeclaim.spec.minimumPriceImprovementPercent #1454
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: wmgroot 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 |
Hi @wmgroot. Thanks for your PR. I'm waiting for a kubernetes-sigs 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-sigs/prow repository. |
Pull Request Test Coverage Report for Build 10290317478Details
💛 - Coveralls |
7a8a567
to
739da63
Compare
739da63
to
99c9e7c
Compare
Signed-off-by: wmgroot <[email protected]>
99c9e7c
to
b4626ae
Compare
This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity. |
// +kubebuilder:validation:Minimum:=0 | ||
// +kubebuilder:validation:Maximum:=100 | ||
// +optional | ||
MinimumPriceImprovementPercent *int32 `json:"minimumPriceImprovementPercent,omitempty"` |
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 this one makes sense at the NodePool level, rather than the NodeClaim level. This is because the decision to consolidate is at the pool level, unlike expiry/tgp, which make sense outside of the context of a pool (i.e. standalone nodeclaim).
WDYT?
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 put it in NodeClaim because I think it could be helpful to have the flexibility to set different improvement thresholds for each NodeClaim in a shared NodePool. The existing candidate filtering logic already considers the price of each NodeClaim individually, so there's no added complexity there.
This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity. |
Fixes #1440
Implementation component of #1433.
Description
This PR adds a configurable
MinimumPriceImprovementPercent
to the NodeClaim spec. This allows users control over how large of a cost improvement should be required for consolidation to disrupt pods operating on a node to replace it with a cheaper alternative.How was this change tested?
TBD. This PR is currently a draft for implementation discussion.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.