Skip to content

Add route table assocations to Subnet #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 30, 2022

Conversation

RedbackThomson
Copy link
Contributor

Closes aws-controllers-k8s/community#1219

Description of changes:
Generates the Subnet CRD with a new custom field RouteTables, which represent an array of route table IDs. Route tables are associated with the Subnet using the AssociateRouteTable API call, and then updated by deleting the association (using DisassociateRouteTable) and re-associating.

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

@ack-bot ack-bot requested review from brycahta and jaypipes March 25, 2022 00:20
Copy link
Contributor

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

@RedbackThomson great work on this. You made the user experience of associating route tables to subnets entirely painless and aligned with the k8s resource model.

Couple teeny things to address inline but this is very close.

@@ -897,6 +897,7 @@ type Explanation struct {
ExplanationCode *string `json:"explanationCode,omitempty"`
MissingComponent *string `json:"missingComponent,omitempty"`
PacketField *string `json:"packetField,omitempty"`
Protocols []*string `json:"protocols,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting.. did this come in from an updated aws-sdk-go version or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No clue why this showed up, honestly. I haven't touched the SDK version afaik

Copy link
Contributor

@brycahta brycahta left a comment

Choose a reason for hiding this comment

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

This is great and a really clean implementation. Appreciate the clear comments and cx (per jay's comment). Just had some small nits

Copy link
Contributor

@brycahta brycahta left a comment

Choose a reason for hiding this comment

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

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 30, 2022
@ack-bot
Copy link
Collaborator

ack-bot commented Mar 30, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brycahta, RedbackThomson

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [RedbackThomson,brycahta]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-bot ack-bot merged commit 8c53852 into aws-controllers-k8s:main Mar 30, 2022
@RedbackThomson RedbackThomson deleted the subnet-rt-assoc branch March 30, 2022 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support association of RouteTable to Subnet in ec2-controller
4 participants