Skip to content

Commit ba0f5db

Browse files
authored
fix(rule): use ruleARN as adoption primary key (#60)
Issue [#2641](aws-controllers-k8s/community#2641) Description of changes: Rule was requiring users to use listenerARN to adopt a resource. These changes ensure users provide the ruleARN to adopt a Rule By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 86ce789 commit ba0f5db

File tree

4 files changed

+18
-13
lines changed

4 files changed

+18
-13
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-09-19T16:54:44Z"
3-
build_hash: 6b4211163dcc34776b01da9a18217bac0f4103fd
4-
go_version: go1.24.6
5-
version: v0.52.0
2+
build_date: "2025-09-25T18:46:28Z"
3+
build_hash: 5bf1e456e1dfc638d47ab492376335f528c0f455
4+
go_version: go1.24.5
5+
version: v0.52.0-1-g5bf1e45
66
api_directory_checksum: c0850c127b1c1c46a7abf233f454e1c7c561a71c
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: cdf7cadf70e31654660514195f4a2f258e7843b8
10+
file_checksum: e59ecda70fd052399089af65a682c10fe45d58a5
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ resources:
203203
output_fields:
204204
TargetGroupName: Name
205205
Rule:
206+
is_arn_primary_key: true
206207
fields:
207208
ListenerArn:
208-
is_primary_key: true
209209
references:
210210
resource: Listener
211211
path: Status.ACKResourceMetadata.ARN

generator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ resources:
203203
output_fields:
204204
TargetGroupName: Name
205205
Rule:
206+
is_arn_primary_key: true
206207
fields:
207208
ListenerArn:
208-
is_primary_key: true
209209
references:
210210
resource: Listener
211211
path: Status.ACKResourceMetadata.ARN

pkg/resource/rule/resource.go

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

0 commit comments

Comments
 (0)