feat(cluster): Add support for controlPlaneEgressMode#228
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: cxbrowne1207 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 @cxbrowne1207. Thanks for your PR. I'm waiting for a aws-controllers-k8s 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. |
4a9f5e4 to
89ca3a5
Compare
Add the ability to configure and update the control plane egress mode for EKS clusters via the Cluster custom resource. This allows users to route control plane egress traffic through their VPC (CUSTOMER_ROUTED) instead of AWS managed networking (AWS_MANAGED). Changes: - Add ControlPlaneEgressMode field to VPCConfigRequest and VPCConfigResponse types - Map field in create, describe, and newVpcConfigRequest paths in sdk.go - Add updateControlPlaneEgressMode handler in hook.go with ResourceInUseException requeue - Add field to Cluster CRD schema - Bump aws-sdk-go-v2/service/eks to v1.87.0 Signed-off-by: Cavaughn Browne <cxbrowne@amazon.com>
89ca3a5 to
c9f0a79
Compare
Description of changes:
EKS launched the
controlPlaneEgressModefield (announcement), which allows customers to route control plane egress traffic through their VPC (CUSTOMER_ROUTED) instead of AWS managed networking (AWS_MANAGED).This change adds support for configuring and updating
controlPlaneEgressModevia the Cluster custom resource.For this change, we updated the AWS SDK version to v1.87.0 and regenerated the controller with
ack-generatev0.59.1.Changes:
apis/v1alpha1/types.go:ControlPlaneEgressModefield added toVPCConfigRequestandVPCConfigResponse(generated)pkg/resource/cluster/sdk.go: Map field in create, describe, andnewVpcConfigRequesthelper (generated)pkg/resource/cluster/hook.go: AddupdateControlPlaneEgressModehandler incustomUpdatewithResourceInUseExceptionrequeueconfig/crd/bases/+helm/crds/: CRD schema updated withcontrolPlaneEgressModefield (generated)go.mod: Bumpaws-sdk-go-v2/service/eksv1.80.0 → v1.87.0Usage:
Testing:
go build ./...go test ./...controlPlaneEgressMode: CUSTOMER_ROUTED— cluster reached ACTIVE with correct mode, CR synced successfully.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.