Skip to content

feat: add SupportedRegions field to VPCEndpointServiceConfiguration#337

Open
michaelhtm wants to merge 1 commit into
aws-controllers-k8s:mainfrom
michaelhtm:feat/add-supported-regions-to-vpc-endpoint-service
Open

feat: add SupportedRegions field to VPCEndpointServiceConfiguration#337
michaelhtm wants to merge 1 commit into
aws-controllers-k8s:mainfrom
michaelhtm:feat/add-supported-regions-to-vpc-endpoint-service

Conversation

@michaelhtm

Copy link
Copy Markdown
Member

Description of changes:
The field was previously ignored. Users can now specify which regions
service consumers can access the endpoint service from. Uses set.from
to extract Region from SupportedRegionDetail on read, and Add/Remove
semantics on update via ModifyVpcEndpointServiceConfiguration.

Resolves aws-controllers-k8s/community#2902

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-prow ack-prow Bot requested a review from gustavodiaz7722 May 26, 2026 22:51
@ack-prow

ack-prow Bot commented May 26, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: michaelhtm

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@ack-prow ack-prow Bot requested a review from sapphirew May 26, 2026 22:51
@ack-prow ack-prow Bot added the approved label May 26, 2026
@michaelhtm michaelhtm force-pushed the feat/add-supported-regions-to-vpc-endpoint-service branch 2 times, most recently from 9946080 to b29ad48 Compare May 28, 2026 17:35
@ncorreia

ncorreia commented Jun 8, 2026

Copy link
Copy Markdown

Hello, I tested this PR against a real AWS integration environment (built the controller from this branch, applied the updated CRD), and it works. Sharing results in case it helps move the review along.

What I validated:

  • The supportedRegions field is accepted on VPCEndpointServiceConfiguration and reconciled to AWS. I set the full set of regions (including the home region) on three live endpoint services and confirmed via describe-vpc-endpoint-service-configurations that all of them were added (SupportedRegions went from 1 to the 18 regions configured).
  • The Add path via ModifyVpcEndpointServiceConfiguration works, and the read-back from SupportedRegionDetail populates correctly.

Thanks for putting this together, would love to see it land. 🙏

@knottnt knottnt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @michaelhtm implementation looks good, but would be good to validate the custom update logic in an e2e test.

return nil
}

func customPreCompare(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: What's the reason for a custom delta here?

@michaelhtm michaelhtm Jun 9, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it allows us to compare supported regions regardless of order.
We can add a helper function in Runtime later to support orderless list comparison

}
}

if delta.DifferentAt("Spec.SupportedRegions") {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since, we're adding custom update behavior it would be good to validate the functionality in an e2e test that checks.

  1. That supported regions can be added/removed
  2. Updates to other fields applied at the same time are also applied.

@michaelhtm michaelhtm force-pushed the feat/add-supported-regions-to-vpc-endpoint-service branch from b29ad48 to 0b09dd1 Compare June 9, 2026 00:07
The field was previously ignored. Users can now specify which regions
service consumers can access the endpoint service from. Uses set.from
to extract Region from SupportedRegionDetail on read, and Add/Remove
semantics on update via ModifyVpcEndpointServiceConfiguration.

Resolves aws-controllers-k8s/community#2902
@michaelhtm michaelhtm force-pushed the feat/add-supported-regions-to-vpc-endpoint-service branch from 0b09dd1 to efb144e Compare June 9, 2026 19:53
@ack-prow

ack-prow Bot commented Jun 9, 2026

Copy link
Copy Markdown

@michaelhtm: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ec2-kind-e2e efb144e link true /test ec2-kind-e2e

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support of "SupportedRegions" field in VPCEndpointService

3 participants