Skip to content

Commit e2327ad

Browse files
authored
fix(securityGroup): groupRef in userIDGroupPairs references id instead of name (#203)
Handles issues [#2101](aws-controllers-k8s/community#2101) GroupId is populated instead of the groupName (which would be the same as the name passed in as reference) when using the groupRef solution. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent fb85da2 commit e2327ad

File tree

9 files changed

+25
-26
lines changed

9 files changed

+25
-26
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: "2024-06-19T08:11:53Z"
2+
build_date: "2024-06-27T13:04:57Z"
33
build_hash: 14cef51778d471698018b6c38b604181a6948248
44
go_version: go1.22.4
55
version: v0.34.0
6-
api_directory_checksum: 7fd395ceb7d5d8e35906991c7348d3498f384741
6+
api_directory_checksum: 1b53401670898ce50e6d6cc8bfba6b63ea7d5683
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.93
99
generator_config_info:
10-
file_checksum: 50dfb186094519e9534c5774690536b3e2474428
10+
file_checksum: ff3f54d44dba872977fef4f23c5f766a1bebbbc2
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,10 +524,10 @@ resources:
524524
references:
525525
resource: VPC
526526
path: Status.VPCID
527-
IngressRules.UserIDGroupPairs.GroupName:
527+
IngressRules.UserIDGroupPairs.GroupID:
528528
references:
529529
resource: SecurityGroup
530-
path: Spec.Name
530+
path: Status.ID
531531
is_required: false
532532
renames:
533533
operations:
@@ -849,4 +849,4 @@ resources:
849849
sdk_read_many_post_set_output:
850850
template_path: hooks/vpc_peering_connection/sdk_read_many_post_set_output.go.tpl
851851
sdk_file_end:
852-
template_path: hooks/vpc_peering_connection/sdk_file_end.go.tpl
852+
template_path: hooks/vpc_peering_connection/sdk_file_end.go.tpl

apis/v1alpha1/types.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/controller/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ kind: Kustomization
66
images:
77
- name: controller
88
newName: public.ecr.aws/aws-controllers-k8s/ec2-controller
9-
newTag: 1.2.12
9+
newTag: 1.2.12

config/crd/bases/ec2.services.k8s.aws_securitygroups.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ spec:
121121
groupName:
122122
type: string
123123
groupRef:
124-
description: Reference field for GroupName
124+
description: Reference field for GroupID
125125
properties:
126126
from:
127127
description: |-
@@ -217,7 +217,7 @@ spec:
217217
groupName:
218218
type: string
219219
groupRef:
220-
description: Reference field for GroupName
220+
description: Reference field for GroupID
221221
properties:
222222
from:
223223
description: |-

generator.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,10 +524,10 @@ resources:
524524
references:
525525
resource: VPC
526526
path: Status.VPCID
527-
IngressRules.UserIDGroupPairs.GroupName:
527+
IngressRules.UserIDGroupPairs.GroupID:
528528
references:
529529
resource: SecurityGroup
530-
path: Spec.Name
530+
path: Status.ID
531531
is_required: false
532532
renames:
533533
operations:
@@ -849,4 +849,4 @@ resources:
849849
sdk_read_many_post_set_output:
850850
template_path: hooks/vpc_peering_connection/sdk_read_many_post_set_output.go.tpl
851851
sdk_file_end:
852-
template_path: hooks/vpc_peering_connection/sdk_file_end.go.tpl
852+
template_path: hooks/vpc_peering_connection/sdk_file_end.go.tpl

helm/crds/ec2.services.k8s.aws_securitygroups.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ spec:
121121
groupName:
122122
type: string
123123
groupRef:
124-
description: Reference field for GroupName
124+
description: Reference field for GroupID
125125
properties:
126126
from:
127127
description: |-
@@ -217,7 +217,7 @@ spec:
217217
groupName:
218218
type: string
219219
groupRef:
220-
description: Reference field for GroupName
220+
description: Reference field for GroupID
221221
properties:
222222
from:
223223
description: |-

helm/templates/NOTES.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{{ .Chart.Name }} has been installed.
2-
32
This chart deploys "public.ecr.aws/aws-controllers-k8s/ec2-controller:1.2.12".
43

54
Check its status by running:

pkg/resource/security_group/references.go

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

0 commit comments

Comments
 (0)