Add excludedInstanceTypes to instanceRequirements - #18113
Conversation
When defining instanceRequirements in the mixedInstancesPolicy for an instance group, allow defining a list of instance types that can be excluded from the set of eligible instances using a new excludedInstanceTypes field.
|
Hi @jim-barber-he. 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 Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
/ok-to-test |
| @@ -49,6 +50,9 @@ func findInstanceRequirements(asg *autoscalingtypes.AutoScalingGroup) (*Instance | |||
| actual.MemoryMax = override.InstanceRequirements.MemoryMiB.Max | |||
| actual.MemoryMax = override.InstanceRequirements.MemoryMiB.Min | |||
There was a problem hiding this comment.
Unrelated bug, but good occasion to fix.
| actual.MemoryMax = override.InstanceRequirements.MemoryMiB.Min | |
| actual.MemoryMin = override.InstanceRequirements.MemoryMiB.Min |
|
Thanks @jim-barber-he, nice update. If you get a chance could you send another PR to fix the unrelated small bug? |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…-upstream-release-1.35 Automated cherry pick of #18113: Add excludedInstanceTypes to instanceRequirements
|
Retesting failed PR that otherwise appears ready for merge. Please help us fix flaky tests by following our Flaky Tests Guide. Prevent this bot from retesting with /retest-required |
@hakman Yeah I can raise another PR for that bug. Now that this PR is merged, do you want me to raise a PR to cherry pick it into the release-1.35 branch so that it ends up in the kOps 1.35.1 release? |


When defining instanceRequirements in the mixedInstancesPolicy for an instance group, allow defining a list of instance types that can be excluded from the set of eligible instances using a new excludedInstanceTypes field.