Skip to content

Commit 6881515

Browse files
author
Nicholas Thomson
committed
Remove EC2-Classic identifiers
1 parent f7af18b commit 6881515

14 files changed

+56
-186
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2022-03-14T23:35:32Z"
2+
build_date: "2022-03-15T18:06:47Z"
33
build_hash: 00cd850c16117752abe18558326a508436565b1a
44
go_version: go1.17.8
55
version: v0.17.2
6-
api_directory_checksum: 45311575b1cf56326ccad9a2caea143fc104b630
6+
api_directory_checksum: 380fda39b038b24d5cb78d2680fdfd8f3ac42607
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.42.0
99
generator_config_info:
10-
file_checksum: b588c7e44229d7db3737b17b76a68708c71e5b68
10+
file_checksum: 8f2761c7fff3c2af0a06aa95685d7a47b8a69345
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/elastic_ip_address.go

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

apis/v1alpha1/generator.yaml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ ignore:
1818
- DeleteRouteInput.RouteTableId
1919
# support EC2-VPC only
2020
- DeleteSecurityGroupInput.GroupName
21+
# support EC2-VPC only
22+
- AllocateAddressInput.Domain
23+
- AllocateAddressOutput.Domain
2124
resource_names:
2225
- AccountAttribute
2326
- CapacityReservation
@@ -94,11 +97,6 @@ operations:
9497
operation_type:
9598
- List
9699
resource_name: ElasticIPAddress
97-
custom_check_required_fields_missing_method: customCheckRequiredFieldsMissing
98-
ModifyAddressAttribute:
99-
operation_type:
100-
- Update
101-
resource_name: ElasticIPAddress
102100
ReleaseAddress:
103101
operation_type:
104102
- Delete
@@ -109,7 +107,6 @@ operations:
109107
operation_type:
110108
- Delete
111109
resource_name: VpcEndpoint
112-
113110
resources:
114111
DhcpOptions:
115112
fields:
@@ -180,21 +177,16 @@ resources:
180177
name: PUBLIC-IP
181178
list_operation:
182179
match_fields:
183-
# PublicIP and AllocationID are two ways of identifying the same resource
184-
# depending on whether they are included as part of EC2-Classic or EC2-VPC,
185-
# respectively. As EC2-VPC is the preferred method, we should attempt to
186-
# use the AllocationID field whenever possible.
187180
- AllocationId
188181
hooks:
182+
sdk_create_post_build_request:
183+
template_path: hooks/elastic_ip_address/sdk_create_post_build_request.go.tpl
189184
sdk_delete_post_build_request:
190185
template_path: hooks/elastic_ip_address/sdk_delete_post_build_request.go.tpl
186+
sdk_read_many_pre_build_request:
187+
template_path: hooks/elastic_ip_address/sdk_read_many_pre_build_request.go.tpl
191188
sdk_read_many_post_build_request:
192189
template_path: hooks/elastic_ip_address/sdk_read_many_post_build_request.go.tpl
193-
renames:
194-
operations:
195-
ModifyAddressAttribute:
196-
input_fields:
197-
DomainName: Domain
198190
SecurityGroup:
199191
fields:
200192
# support EC2-VPC only

apis/v1alpha1/types.go

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/zz_generated.deepcopy.go

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

config/crd/bases/ec2.services.k8s.aws_elasticipaddresses.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ spec:
5252
to let Amazon EC2 select an address from the address pool. Alternatively,
5353
specify a specific address from the address pool.
5454
type: string
55-
domain:
56-
description: "Indicates whether the Elastic IP address is for use
57-
with instances in a VPC or instances in EC2-Classic. \n Default:
58-
If the Region supports EC2-Classic, the default is standard. Otherwise,
59-
the default is vpc."
60-
type: string
6155
networkBorderGroup:
6256
description: "A unique set of Availability Zones, Local Zones, or
6357
Wavelength Zones from which Amazon Web Services advertises IP addresses.

generator.yaml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ ignore:
1818
- DeleteRouteInput.RouteTableId
1919
# support EC2-VPC only
2020
- DeleteSecurityGroupInput.GroupName
21+
# support EC2-VPC only
22+
- AllocateAddressInput.Domain
23+
- AllocateAddressOutput.Domain
2124
resource_names:
2225
- AccountAttribute
2326
- CapacityReservation
@@ -94,11 +97,6 @@ operations:
9497
operation_type:
9598
- List
9699
resource_name: ElasticIPAddress
97-
custom_check_required_fields_missing_method: customCheckRequiredFieldsMissing
98-
ModifyAddressAttribute:
99-
operation_type:
100-
- Update
101-
resource_name: ElasticIPAddress
102100
ReleaseAddress:
103101
operation_type:
104102
- Delete
@@ -109,7 +107,6 @@ operations:
109107
operation_type:
110108
- Delete
111109
resource_name: VpcEndpoint
112-
113110
resources:
114111
DhcpOptions:
115112
fields:
@@ -180,21 +177,16 @@ resources:
180177
name: PUBLIC-IP
181178
list_operation:
182179
match_fields:
183-
# PublicIP and AllocationID are two ways of identifying the same resource
184-
# depending on whether they are included as part of EC2-Classic or EC2-VPC,
185-
# respectively. As EC2-VPC is the preferred method, we should attempt to
186-
# use the AllocationID field whenever possible.
187180
- AllocationId
188181
hooks:
182+
sdk_create_post_build_request:
183+
template_path: hooks/elastic_ip_address/sdk_create_post_build_request.go.tpl
189184
sdk_delete_post_build_request:
190185
template_path: hooks/elastic_ip_address/sdk_delete_post_build_request.go.tpl
186+
sdk_read_many_pre_build_request:
187+
template_path: hooks/elastic_ip_address/sdk_read_many_pre_build_request.go.tpl
191188
sdk_read_many_post_build_request:
192189
template_path: hooks/elastic_ip_address/sdk_read_many_post_build_request.go.tpl
193-
renames:
194-
operations:
195-
ModifyAddressAttribute:
196-
input_fields:
197-
DomainName: Domain
198190
SecurityGroup:
199191
fields:
200192
# support EC2-VPC only

helm/crds/ec2.services.k8s.aws_elasticipaddresses.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ spec:
5252
to let Amazon EC2 select an address from the address pool. Alternatively,
5353
specify a specific address from the address pool.
5454
type: string
55-
domain:
56-
description: "Indicates whether the Elastic IP address is for use
57-
with instances in a VPC or instances in EC2-Classic. \n Default:
58-
If the Region supports EC2-Classic, the default is standard. Otherwise,
59-
the default is vpc."
60-
type: string
6155
networkBorderGroup:
6256
description: "A unique set of Availability Zones, Local Zones, or
6357
Wavelength Zones from which Amazon Web Services advertises IP addresses.

pkg/resource/elastic_ip_address/delta.go

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

pkg/resource/elastic_ip_address/hook.go

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)