Skip to content

Commit 874abea

Browse files
author
Guido van der Hart
committed
Add CidrCollection support to route53 controller
1 parent db25518 commit 874abea

32 files changed

+2624
-16
lines changed
+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2024-08-15T06:35:26Z"
3-
build_hash: 959eaa58cf17d1fd3ce540bf4e9b4184d08f65b5
4-
go_version: go1.22.5
5-
version: v0.36.0-6-g959eaa5
6-
api_directory_checksum: 78fb7fd24a85da24b8de6246cad67ff3fb6598f8
2+
build_date: "2024-07-23T12:21:24Z"
3+
build_hash: 14cef51778d471698018b6c38b604181a6948248
4+
go_version: go1.22.1
5+
version: v0.34.0
6+
api_directory_checksum: 8086a888d9ac00c5b0269cfdfc126d955bb831d6
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.49.0
99
generator_config_info:
10-
file_checksum: 3a694e7177f90f7ba4c526b14e1ce2b1e9748446
10+
file_checksum: a841c574fab5ddf8a35ade3ba90e7f6713255d7e
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/cidr_collection.go

+80
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/generator.yaml

+70-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ ignore:
33
- ChangeResourceRecordSetsOutput.ChangeInfo.Comment
44
- CreateHostedZoneInput.CallerReference
55
- CreateHealthCheckInput.CallerReference
6+
- CreateCidrCollectionInput.CallerReference
67
operations: null
78
resource_names:
8-
- CidrCollection
9+
# - CidrCollection
910
# - HealthCheck
1011
# - HostedZone
1112
- KeySigningKey
@@ -15,7 +16,6 @@ ignore:
1516
- TrafficPolicyInstance
1617
- TrafficPolicyVersion
1718
- VPCAssociationAuthorization
18-
- CidrCollection
1919
shape_names: null
2020
model_name: route53
2121
operations:
@@ -30,6 +30,26 @@ operations:
3030
- List
3131
resource_name:
3232
RecordSet
33+
CreateCidrCollection:
34+
operation_type:
35+
- Create
36+
resource_name:
37+
CidrCollection
38+
ChangeCidrCollection:
39+
operation_type:
40+
- Update
41+
resource_name:
42+
CidrCollection
43+
DeleteCidrCollection:
44+
operation_type:
45+
- Delete
46+
resource_name:
47+
CidrCollection
48+
ListCidrCollections:
49+
operation_type:
50+
- List
51+
resource_name:
52+
CidrCollection
3353
CreateHostedZone:
3454
output_wrapper_field_path: HostedZone
3555
GetHostedZone:
@@ -151,6 +171,54 @@ resources:
151171
ignore: true
152172
update_operation:
153173
custom_method_name: customUpdateRecordSet
174+
CidrCollection:
175+
renames:
176+
operations:
177+
ChangeCidrCollection:
178+
input_fields:
179+
Changes: Locations
180+
exceptions:
181+
terminal_codes:
182+
- InvalidInput
183+
- CidrCollectionAlreadyExists
184+
- CidrCollectionInUse
185+
- CidrCollectionVersionMismatch
186+
- NoSuchCidrCollection
187+
- CidrBlockInUse
188+
fields:
189+
Name:
190+
from:
191+
operation: CreateCidrCollection
192+
path: Name
193+
is_required: true
194+
is_primary_key: true
195+
is_immutable: true
196+
CollectionVersion:
197+
is_required: false
198+
Locations:
199+
from:
200+
operation: ChangeCidrCollection
201+
path: Changes
202+
is_required: true
203+
CallerReference:
204+
is_read_only: true
205+
type: "*string"
206+
hooks:
207+
delta_pre_compare:
208+
code: compareCustom(delta, a, b)
209+
sdk_create_post_build_request:
210+
template_path: hooks/cidr_collection/sdk_create_post_build_request.go.tpl
211+
sdk_create_post_set_output:
212+
template_path: hooks/cidr_collection/sdk_create_post_set_output.go.tpl
213+
sdk_delete_post_build_request:
214+
template_path: hooks/cidr_collection/sdk_delete_post_build_request.go.tpl
215+
sdk_read_many_pre_set_output:
216+
template_path: hooks/cidr_collection/sdk_read_many_pre_set_output.go.tpl
217+
# This resource does not have tags
218+
tags:
219+
ignore: true
220+
update_operation:
221+
custom_method_name: customUpdateCidrCollection
154222
HostedZone:
155223
exceptions:
156224
terminal_codes:

apis/v1alpha1/types.go

+22-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)