Skip to content

Commit 63881fe

Browse files
authored
Remove subnet UserIDGroupPairs.GroupID references (#192)
Partial revert of cd75ad9 Initially our intention was to generate code to reference for both `GroupName` and `GroupID` fields in the `UserIDGroupPairs`. However what we (I) missed was that the code-generator processes the references fields, omits "ID" and "Name" name fields, and infers names for the referenced fields (e.g `GroupName` -> `GroupRef` and `GroupID` -> `GroupRef`. This confused the ACK code generator since both `GroupName` and `GroupID` needed a reference field called `GroupRef`. This caused some confusion at the code generation level, triggering some validation issues and introduced a regression in our references code. In a attempt to address the regression, we will first omit one of the references (GroupID), regenerate the code and address this in the code-generator later on. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 34439b0 commit 63881fe

File tree

4 files changed

+10
-70
lines changed

4 files changed

+10
-70
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-05-22T16:42:26Z"
2+
build_date: "2024-05-31T06:34:31Z"
33
build_hash: 14cef51778d471698018b6c38b604181a6948248
4-
go_version: go1.21.1
4+
go_version: go1.22.3
55
version: v0.34.0
6-
api_directory_checksum: 1b53401670898ce50e6d6cc8bfba6b63ea7d5683
6+
api_directory_checksum: 7fd395ceb7d5d8e35906991c7348d3498f384741
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.93
99
generator_config_info:
10-
file_checksum: 75820b9d685b38976cd9723a9435f119ab913245
10+
file_checksum: ae36cc7af80031c6de1461fa5fafad17631dbc99
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,6 @@ resources:
552552
references:
553553
resource: VPC
554554
path: Status.VPCID
555-
IngressRules.UserIDGroupPairs.GroupID:
556-
references:
557-
resource: SecurityGroup
558-
path: Status.ID
559555
IngressRules.UserIDGroupPairs.GroupName:
560556
references:
561557
resource: SecurityGroup

generator.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,6 @@ resources:
552552
references:
553553
resource: VPC
554554
path: Status.VPCID
555-
IngressRules.UserIDGroupPairs.GroupID:
556-
references:
557-
resource: SecurityGroup
558-
path: Status.ID
559555
IngressRules.UserIDGroupPairs.GroupName:
560556
references:
561557
resource: SecurityGroup

pkg/resource/security_group/references.go

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

0 commit comments

Comments
 (0)