Skip to content

Commit c806540

Browse files
authored
Force "uRI" in CRD field (#177)
Issue #, if available: [v0.0.19 release](https://github.com/aws-controllers-k8s/pkg/releases/tag/v0.0.19) of aws-controller-k8s/pkg fixes a bug where "URI" became "uRI" when used in CRD fields. Unfortunately, this bug made it into the s3-controller. Forcing the "uRI" in affected field to maintain existing behavior and avoid breaking change in the Bucket CRD. Description of changes: - Apply go_tag in generator.yaml to force Logging.LoggingEnabled.TargetGrants.Grantee.URI field to "uRI" to avoid breaking change. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 1e47656 commit c806540

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
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: "2025-08-15T00:18:45Z"
2+
build_date: "2025-08-21T20:37:57Z"
33
build_hash: b6df33f8c7f55b234555c0b578b8de43c74771a8
4-
go_version: go1.24.6
4+
go_version: go1.25.0
55
version: v0.51.0
66
api_directory_checksum: 2108338a86d704419192e545c0bfb433bab8c836
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 0170e59d23a7c2d7fcc2960ce3f537e348933ded
10+
file_checksum: 00a96da29786586c7a3a59666d5546468e616b48
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ resources:
5454
from:
5555
operation: PutBucketLogging
5656
path: BucketLoggingStatus
57+
Logging.LoggingEnabled.TargetGrants.Grantee.URI:
58+
# Forcing CRD field to "uRI" to avoid breaking change following
59+
# fix in aws-controller-k8s/pkg dependency for URI -> uri.
60+
go_tag: json:"uRI,omitempty"
5761
Metrics:
5862
custom_field:
5963
list_of: MetricsConfiguration

generator.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ resources:
5454
from:
5555
operation: PutBucketLogging
5656
path: BucketLoggingStatus
57+
Logging.LoggingEnabled.TargetGrants.Grantee.URI:
58+
# Forcing CRD field to "uRI" to avoid breaking change following
59+
# fix in aws-controller-k8s/pkg dependency for URI -> uri.
60+
go_tag: json:"uRI,omitempty"
5761
Metrics:
5862
custom_field:
5963
list_of: MetricsConfiguration

0 commit comments

Comments
 (0)