-
Notifications
You must be signed in to change notification settings - Fork 60
feat(VPCPeeringConnection): add support for custom resource and additional fields for Modify OP and auto-accepting #158
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
Conversation
|
Hi @marcdavoli. 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 Once the patch is verified, the new status will be reflected by the 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. |
|
/ok-to-test |
| ModifyVpcPeeringConnectionOptions: | ||
| operation_type: | ||
| - Update | ||
| resource_name: VpcPeeringConnection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes the code-generator mapping of the sdkUpdate function to use ModifyVpcPeeringConnectionOptions (Ref) instead of UpdateVpcPeeringConnection (which doesn't exist)
| AccepterPeeringConnectionOptions: | ||
| from: | ||
| operation: ModifyVpcPeeringConnectionOptions | ||
| path: AccepterPeeringConnectionOptions | ||
| RequesterPeeringConnectionOptions: | ||
| from: | ||
| operation: ModifyVpcPeeringConnectionOptions | ||
| path: RequesterPeeringConnectionOptions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two fields are used by the ModifyVpcPeeringConnectionOptions API call, not the CreateVpcPeeringConnection call, but are represented as being natively part of the ACK resource.
apis/v1alpha1/generator.yaml
Outdated
| hooks: | ||
| sdk_update_post_build_request: | ||
| template_path: hooks/vpc_peering_connection/sdk_update_post_build_request.go.tpl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This hook wires up 2 fields that exist in the resource's Spec to include them into the Update operation payload
AccepterPeeringConnectionOptionsRequesterPeeringConnectionOptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allez, cette fois, c'est la bonne!
Mercy buckets!!
/lgtm
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: a-hilaly, marcdavoli 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:
Approvers can indicate their approval by writing |
Issue #, if available: - aws-controllers-k8s/community#1943 Description of changes: This PR creates a release v1.1.0 for ec2-controller, following the merge of PR - #158 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Changes
This PR adds the
vpcpeeringconnectionscustom resource via the standard code-generator output, but with a few custom additions:spec.vpcRef(instead ofspec.vpcId) andspec.peerVpcRef(instead ofspec.peerVpcId).spec.accepterPeeringConnectionOptionsandspec.requesterPeeringConnectionOptionsfields, which come from theModifyVpcPeeringConnectionOptionsAPI call, to allow the use of theallowDnsResolutionFromRemoteVpc,AllowEgressFromLocalVpcToRemoteClassicLinkandAllowEgressFromLocalClassicLinkToRemoteVpcsub-fields.spec.acceptRequest(boolean) which will allow the VPC Peering Connection Request to automatically switch from statuspending-acceptancetoactivewithout manual intervention. (Inspired by Crossplane's implementation (Ref))spec.routes.vpcPeeringConnectionRefto the Route Table CRReferences
VPCPeeringConnectionsupport to ec2-controller community#1943By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.