Skip to content

Add NATGateway CRD #43

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 2 commits into from
Mar 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ack_generate_info:
build_date: "2022-03-22T20:05:53Z"
build_date: "2022-03-23T01:22:49Z"
build_hash: 6f659f796434e8fd6443c0b3a5b495daae910035
go_version: go1.17.5
go_version: go1.17.8
version: v0.18.0
api_directory_checksum: c9ac09820420d1c7cbe615b8baa14da9f72aab08
api_directory_checksum: cc3671a6c2f26f433ffe32815ccfaa24d12e42d1
api_version: v1alpha1
aws_sdk_go_version: v1.42.0
generator_config_info:
file_checksum: 8cdcf3f86b878ab3f30b3e102a5a6b1df8dfafb3
file_checksum: 721b58308fb63699f1ac3c233e529189e7d59c4c
original_file_name: generator.yaml
last_modification:
reason: API generation
21 changes: 20 additions & 1 deletion apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ ignore:
- AllocateAddressInput.DryRun
- CreateDhcpOptionsInput.DryRun
- CreateInternetGatewayInput.DryRun
- CreateNatGatewayInput.ClientToken
- CreateNatGatewayInput.DryRun
- CreateRouteInput.DryRun
- CreateRouteInput.RouteTableId
- CreateRouteTableInput.DryRun
Expand Down Expand Up @@ -46,7 +48,7 @@ ignore:
- LocalGatewayRouteTableVpcAssociation
- LocalGatewayRoute
- ManagedPrefixList
- NatGateway
#- NatGateway
- NetworkAclEntry
- NetworkAcl
- NetworkInsightsPath
Expand Down Expand Up @@ -101,6 +103,8 @@ operations:
operation_type:
- Delete
resource_name: ElasticIPAddress
CreateNatGateway:
output_wrapper_field_path: NatGateway
CreateVpcEndpoint:
output_wrapper_field_path: VpcEndpoint
DeleteVpcEndpoints:
Expand Down Expand Up @@ -187,6 +191,21 @@ resources:
template_path: hooks/elastic_ip_address/sdk_read_many_pre_build_request.go.tpl
sdk_read_many_post_build_request:
template_path: hooks/elastic_ip_address/sdk_read_many_post_build_request.go.tpl
NatGateway:
fields:
AllocationId:
references:
resource: ElasticIPAddress
path: Status.AllocationID
SubnetId:
references:
resource: Subnet
path: Status.SubnetID
synced:
when:
- path: Status.State
in:
- available
SecurityGroup:
fields:
# support EC2-VPC only
Expand Down
148 changes: 148 additions & 0 deletions apis/v1alpha1/nat_gateway.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 19 additions & 12 deletions apis/v1alpha1/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading