Skip to content

Commit 350d55f

Browse files
Add NATGateway CRD (#43)
Issue #, if available: Description of changes: Creates the `NATGateway` CRD, with references to `ElasticIPAddress` and `Subnet` for their respective fields By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 645d317 commit 350d55f

28 files changed

+2759
-35
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2022-03-22T20:05:53Z"
2+
build_date: "2022-03-23T01:22:49Z"
33
build_hash: 6f659f796434e8fd6443c0b3a5b495daae910035
4-
go_version: go1.17.5
4+
go_version: go1.17.8
55
version: v0.18.0
6-
api_directory_checksum: c9ac09820420d1c7cbe615b8baa14da9f72aab08
6+
api_directory_checksum: cc3671a6c2f26f433ffe32815ccfaa24d12e42d1
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.42.0
99
generator_config_info:
10-
file_checksum: 8cdcf3f86b878ab3f30b3e102a5a6b1df8dfafb3
10+
file_checksum: 721b58308fb63699f1ac3c233e529189e7d59c4c
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ ignore:
66
- AllocateAddressInput.DryRun
77
- CreateDhcpOptionsInput.DryRun
88
- CreateInternetGatewayInput.DryRun
9+
- CreateNatGatewayInput.ClientToken
10+
- CreateNatGatewayInput.DryRun
911
- CreateRouteInput.DryRun
1012
- CreateRouteInput.RouteTableId
1113
- CreateRouteTableInput.DryRun
@@ -46,7 +48,7 @@ ignore:
4648
- LocalGatewayRouteTableVpcAssociation
4749
- LocalGatewayRoute
4850
- ManagedPrefixList
49-
- NatGateway
51+
#- NatGateway
5052
- NetworkAclEntry
5153
- NetworkAcl
5254
- NetworkInsightsPath
@@ -101,6 +103,8 @@ operations:
101103
operation_type:
102104
- Delete
103105
resource_name: ElasticIPAddress
106+
CreateNatGateway:
107+
output_wrapper_field_path: NatGateway
104108
CreateVpcEndpoint:
105109
output_wrapper_field_path: VpcEndpoint
106110
DeleteVpcEndpoints:
@@ -187,6 +191,21 @@ resources:
187191
template_path: hooks/elastic_ip_address/sdk_read_many_pre_build_request.go.tpl
188192
sdk_read_many_post_build_request:
189193
template_path: hooks/elastic_ip_address/sdk_read_many_post_build_request.go.tpl
194+
NatGateway:
195+
fields:
196+
AllocationId:
197+
references:
198+
resource: ElasticIPAddress
199+
path: Status.AllocationID
200+
SubnetId:
201+
references:
202+
resource: Subnet
203+
path: Status.SubnetID
204+
synced:
205+
when:
206+
- path: Status.State
207+
in:
208+
- available
190209
SecurityGroup:
191210
fields:
192211
# support EC2-VPC only

apis/v1alpha1/nat_gateway.go

Lines changed: 148 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/types.go

Lines changed: 19 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)