Skip to content

Commit ab2edaf

Browse files
authored
Add VPCConfig.SecurityId reference (#61)
Issue #, if available: Description of changes: Adding reference for VPCConfig.SecurityId By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent b659727 commit ab2edaf

File tree

10 files changed

+169
-6
lines changed

10 files changed

+169
-6
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: "2022-10-17T20:12:02Z"
2+
build_date: "2022-10-17T21:33:01Z"
33
build_hash: 5ee0ac052c54f008dff50f6f5ebb73f2cf3a0bd7
44
go_version: go1.19
5-
version: v0.19.3-11-g5ee0ac0-dirty
6-
api_directory_checksum: 33517b27f08163345ca25ea0d08179bd59580742
5+
version: v0.19.3-11-g5ee0ac0
6+
api_directory_checksum: 524eddcd9132990dfde91e2198972cb98824b0c8
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.93
99
generator_config_info:
10-
file_checksum: fc936f6c681c03e4ad3d8eaa5588c9acb3caabe1
10+
file_checksum: b80da83b8bcef0df08e435dbcfd6b744cffbdb71
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ resources:
1313
resource: Subnet
1414
path: Status.SubnetID
1515
service_name: ec2
16+
VPCConfig.SecurityGroupIDs:
17+
references:
18+
resource: SecurityGroup
19+
path: Status.ID
20+
service_name: ec2
1621
KMSKeyARN:
1722
references:
1823
resource: Key

apis/v1alpha1/types.go

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

apis/v1alpha1/zz_generated.deepcopy.go

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

config/crd/bases/lambda.services.k8s.aws_functions.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,24 @@ spec:
217217
items:
218218
type: string
219219
type: array
220+
securityGroupRefs:
221+
description: Reference field for SecurityGroupIDs
222+
items:
223+
description: 'AWSResourceReferenceWrapper provides a wrapper
224+
around *AWSResourceReference type to provide more user friendly
225+
syntax for references using ''from'' field Ex: APIIDRef: from:
226+
name: my-api'
227+
properties:
228+
from:
229+
description: AWSResourceReference provides all the values
230+
necessary to reference another k8s resource for finding
231+
the identifier(Id/ARN/Name)
232+
properties:
233+
name:
234+
type: string
235+
type: object
236+
type: object
237+
type: array
220238
subnetIDs:
221239
items:
222240
type: string

config/rbac/cluster-role-controller.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@ rules:
3131
- list
3232
- patch
3333
- watch
34+
- apiGroups:
35+
- ec2.services.k8s.aws
36+
resources:
37+
- securitygroups
38+
verbs:
39+
- get
40+
- list
41+
- apiGroups:
42+
- ec2.services.k8s.aws
43+
resources:
44+
- securitygroups/status
45+
verbs:
46+
- get
47+
- list
3448
- apiGroups:
3549
- ec2.services.k8s.aws
3650
resources:

generator.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ resources:
1313
resource: Subnet
1414
path: Status.SubnetID
1515
service_name: ec2
16+
VPCConfig.SecurityGroupIDs:
17+
references:
18+
resource: SecurityGroup
19+
path: Status.ID
20+
service_name: ec2
1621
KMSKeyARN:
1722
references:
1823
resource: Key

helm/crds/lambda.services.k8s.aws_functions.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,24 @@ spec:
217217
items:
218218
type: string
219219
type: array
220+
securityGroupRefs:
221+
description: Reference field for SecurityGroupIDs
222+
items:
223+
description: 'AWSResourceReferenceWrapper provides a wrapper
224+
around *AWSResourceReference type to provide more user friendly
225+
syntax for references using ''from'' field Ex: APIIDRef: from:
226+
name: my-api'
227+
properties:
228+
from:
229+
description: AWSResourceReference provides all the values
230+
necessary to reference another k8s resource for finding
231+
the identifier(Id/ARN/Name)
232+
properties:
233+
name:
234+
type: string
235+
type: object
236+
type: object
237+
type: array
220238
subnetIDs:
221239
items:
222240
type: string

helm/templates/cluster-role-controller.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ rules:
4646
- list
4747
- patch
4848
- watch
49+
- apiGroups:
50+
- ec2.services.k8s.aws
51+
resources:
52+
- securitygroups
53+
verbs:
54+
- get
55+
- list
56+
- apiGroups:
57+
- ec2.services.k8s.aws
58+
resources:
59+
- securitygroups/status
60+
verbs:
61+
- get
62+
- list
4963
- apiGroups:
5064
- ec2.services.k8s.aws
5165
resources:

pkg/resource/function/references.go

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

0 commit comments

Comments
 (0)