✨ feat: add capacity reservation group support#6052
Conversation
Add v1beta2 fields for targeting capacity reservation resource group ARNs from AWSMachine and AWSLaunchTemplate. Plumb the field through EC2 instance and launch template request generation, conversion restore paths, webhook validation, and generated CRDs. Keep reservation IDs and resource group ARNs mutually exclusive. Signed-off-by: Justin Miron <justin.miron@reddit.com>
|
[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. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @justinmir. 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 Regular contributors should join the org to skip this step. 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. |
What type of PR is this?
/kind feature
/kind api-change
What this PR does / why we need it:
Adds support for targeting AWS Capacity Reservation resource groups from CAPA launch paths.
This adds a v1beta2
capacityReservationResourceGroupARNfield forAWSMachineandAWSLaunchTemplate, then plumbs it through EC2 instance and launch template request generation. The new target is mutually exclusive withcapacityReservationIdand follows the existing Spot and CapacityBlock validation rules.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):N/A
Special notes for your reviewer:
This mirrors the existing capacity reservation ID behavior, but sets
CapacityReservationResourceGroupArnon the AWS SDK capacity reservation target.AI Usage:
This PR was developed with assistance from GPT-5.5 with the Opencode Harness.
Checklist:
Release note: