Skip to content

Commit 643cfb6

Browse files
authored
Add HealthCheck support to route53 controller (#41)
Issue #, if available: NA Description of changes: Adds support for HealthChecks in Route53. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 25f7931 commit 643cfb6

33 files changed

+3807
-11
lines changed
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2024-03-29T14:30:36Z"
2+
build_date: "2024-04-18T07:47:56Z"
33
build_hash: e8df4d5a4b86dea0e227786c2c3d213e5aeda97a
4-
go_version: go1.22.0
4+
go_version: go1.22.1
55
version: v0.33.0
6-
api_directory_checksum: b2723303b8200eb6f9228e7b2a4c433d6783d4ff
6+
api_directory_checksum: a0ca03c8b7d3292d666682d6aa2a6d3e665e5505
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.49.0
99
generator_config_info:
10-
file_checksum: 3120a47920b44a81bac54b6e49261a4592315002
10+
file_checksum: 5683838da0708bf6df32d169894722b65746bb1d
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

+53-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ ignore:
22
field_paths:
33
- ChangeResourceRecordSetsOutput.ChangeInfo.Comment
44
- CreateHostedZoneInput.CallerReference
5+
- CreateHealthCheckInput.CallerReference
56
operations: null
67
resource_names:
78
- CidrCollection
8-
- HealthCheck
9+
# - HealthCheck
910
# - HostedZone
1011
- KeySigningKey
1112
- QueryLoggingConfig
@@ -33,6 +34,12 @@ operations:
3334
output_wrapper_field_path: HostedZone
3435
GetHostedZone:
3536
output_wrapper_field_path: HostedZone
37+
CreateHealthCheck:
38+
output_wrapper_field_path: HealthCheck
39+
GetHealthCheck:
40+
output_wrapper_field_path: HealthCheck
41+
UpdateHealthCheck:
42+
output_wrapper_field_path: HealthCheck
3643
prefix_config: {}
3744
resources:
3845
RecordSet:
@@ -173,3 +180,48 @@ resources:
173180
ignore: true
174181
update_operation:
175182
custom_method_name: customUpdateHostedZone
183+
HealthCheck:
184+
renames:
185+
operations:
186+
GetHealthCheck:
187+
input_fields:
188+
HealthCheckId: Id
189+
UpdateHealthCheck:
190+
input_fields:
191+
HealthCheckId: Id
192+
DeleteHealthCheck:
193+
input_fields:
194+
HealthCheckId: Id
195+
exceptions:
196+
terminal_codes:
197+
- InvalidInput
198+
- HealthCheckInUse
199+
fields:
200+
Tags:
201+
from:
202+
operation: ChangeTagsForResource
203+
path: AddTags
204+
compare:
205+
is_ignored: True
206+
HealthCheckConfig.Type:
207+
go_tag: json:"type,omitempty"
208+
is_immutable: true
209+
HealthCheckConfig.MeasureLatency:
210+
is_immutable: true
211+
HealthCheckConfig.RequestInterval:
212+
is_immutable: true
213+
HealthCheckConfig.RoutingControlArn:
214+
is_immutable: true
215+
hooks:
216+
delta_pre_compare:
217+
code: compareTags(delta, a, b)
218+
sdk_read_one_post_set_output:
219+
template_path: hooks/health_check/sdk_read_one_post_set_output.go.tpl
220+
sdk_create_post_set_output:
221+
template_path: hooks/health_check/sdk_create_post_set_output.go.tpl
222+
sdk_create_post_build_request:
223+
template_path: hooks/health_check/sdk_create_post_build_request.go.tpl
224+
sdk_file_end:
225+
template_path: hooks/health_check/sdk_file_end.go.tpl
226+
update_operation:
227+
custom_method_name: customUpdateHealthCheck

apis/v1alpha1/health_check.go

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

apis/v1alpha1/types.go

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

0 commit comments

Comments
 (0)