Skip to content

Commit db25518

Browse files
authored
Add recordType additional key to recordSet resource identifier (#52)
Issue [#2108](aws-controllers-k8s/community#2108) Description of changes: * Added `post_set_resource_identifiers` hook template * Regenerated controller By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent a59f469 commit db25518

File tree

6 files changed

+18
-7
lines changed

6 files changed

+18
-7
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: "2024-08-06T02:38:07Z"
3-
build_hash: 587b90dc860e91ee9a763e9e3bc4d3f1b2fbddb7
2+
build_date: "2024-08-15T06:35:26Z"
3+
build_hash: 959eaa58cf17d1fd3ce540bf4e9b4184d08f65b5
44
go_version: go1.22.5
5-
version: v0.36.0
5+
version: v0.36.0-6-g959eaa5
66
api_directory_checksum: 78fb7fd24a85da24b8de6246cad67ff3fb6598f8
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.49.0
99
generator_config_info:
10-
file_checksum: 5683838da0708bf6df32d169894722b65746bb1d
10+
file_checksum: 3a694e7177f90f7ba4c526b14e1ce2b1e9748446
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ resources:
139139
template_path: hooks/record_set/sdk_read_many_pre_set_output.go.tpl
140140
sdk_read_many_post_set_output:
141141
template_path: hooks/record_set/sdk_read_many_post_set_output.go.tpl
142+
post_set_resource_identifiers:
143+
template_path: hooks/record_set/post_set_resource_identifiers.go.tpl
142144
list_operation:
143145
match_fields:
144146
- HostedZoneId

generator.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ resources:
139139
template_path: hooks/record_set/sdk_read_many_pre_set_output.go.tpl
140140
sdk_read_many_post_set_output:
141141
template_path: hooks/record_set/sdk_read_many_post_set_output.go.tpl
142+
post_set_resource_identifiers:
143+
template_path: hooks/record_set/post_set_resource_identifiers.go.tpl
142144
list_operation:
143145
match_fields:
144146
- HostedZoneId

helm/values.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,5 @@ leaderElection:
157157
# Configuration for feature gates. These are optional controller features that
158158
# can be individually enabled ("true") or disabled ("false") by adding key/value
159159
# pairs below.
160-
featureGates: {}
161-
# featureGate1: true
162-
# featureGate2: false
160+
featureGates:
161+
CARMv2: false

pkg/resource/record_set/resource.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
f1, f1ok := identifier.AdditionalKeys["recordType"]
2+
if f1ok {
3+
r.ko.Spec.RecordType = &f1
4+
}

0 commit comments

Comments
 (0)