cluster-api-provider-aws icon indicating copy to clipboard operation
cluster-api-provider-aws copied to clipboard

✨ feat: create vpc objects in explicitly provided availability zones

Open synthe102 opened this issue 1 year ago • 20 comments
trafficstars

What type of PR is this?

/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged): Fixes #4333, continues the work started by @Skarlso in this PR by:

  • moving the defaults for AvailabilityZoneSelection and AvailabilityZoneUsageLimit into defaulting webhooks instead of CRDs
  • adding check in validating webhooks for conflicting use of AvailabilityZoneUsageLimit and AvailabilityZoneSelection with AvailabilityZones

Special notes for your reviewer:

Checklist:

  • [x] squashed commits
  • [ ] includes documentation
  • [x] includes emojis
  • [x] adds unit tests
  • [ ] adds or updates e2e tests

Release note:

Ability to specify Availability Zones from spec.network.vpc in AWSManagedControlPlane, AWSCluster and AWSClusterTemplate CRDs.

synthe102 avatar Apr 23 '24 16:04 synthe102

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign justinsb for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Apr 23 '24 16:04 k8s-ci-robot

Hi @synthe102. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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/test-infra repository.

k8s-ci-robot avatar Apr 23 '24 16:04 k8s-ci-robot

/ok-to-test

AndiDog avatar Jul 03 '24 10:07 AndiDog

@AndiDog Thanks a lot for this initial review. I addressed all your comments, all the tests are OK so far.

synthe102 avatar Jul 17 '24 10:07 synthe102

/test pull-cluster-api-provider-aws-verify

synthe102 avatar Jul 17 '24 10:07 synthe102

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign neolit123 for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Aug 06 '24 10:08 k8s-ci-robot

@AndiDog Thanks for the review ! PR is rebased and I added your suggestions.

synthe102 avatar Aug 06 '24 11:08 synthe102

/lgtm

AndiDog avatar Aug 09 '24 15:08 AndiDog

Hi @AndiDog anyone can take a look at this PR? Looking for another /approve.

cpwc avatar Aug 23 '24 13:08 cpwc

Hi @AndiDog giving this a bump if anyone can take a look at this PR? Looking for another /approve.

cpwc avatar Aug 29 '24 14:08 cpwc