Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VPC and SecurityGroup references for UserIDGroupPair type #187

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ack_generate_info:
build_date: "2024-03-29T14:28:01Z"
build_hash: e8df4d5a4b86dea0e227786c2c3d213e5aeda97a
go_version: go1.22.0
version: v0.33.0
api_directory_checksum: 978f0d4c5a7a660b987ba1e5c2be3a62ab53554c
build_date: "2024-04-22T12:02:00Z"
build_hash: d660ee36fe947607ebea039acd47c35477b4a836
go_version: go1.22.1
version: v0.33.0-2-gd660ee3
api_directory_checksum: bd9acc4aac1be7c405bd90c14e37da4e15ed82bc
api_version: v1alpha1
aws_sdk_go_version: v1.44.93
generator_config_info:
file_checksum: 216d65c35dbc73d4eaaa52c2f5c84444abf4a960
file_checksum: 21aa2c0035772a834102dcdac81a186fe148212c
original_file_name: generator.yaml
last_modification:
reason: API generation
12 changes: 12 additions & 0 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,18 @@ resources:
references:
resource: VPC
path: Status.VPCID
IngressRules.UserIDGroupPairs.VPCID:
references:
resource: VPC
path: Status.VPCID
IngressRules.UserIDGroupPairs.GroupID:
references:
resource: SecurityGroup
path: Status.ID
IngressRules.UserIDGroupPairs.GroupName:
references:
resource: SecurityGroup
path: Spec.Name
renames:
operations:
CreateSecurityGroup:
Expand Down
18 changes: 11 additions & 7 deletions apis/v1alpha1/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions apis/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions config/crd/bases/ec2.services.k8s.aws_securitygroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,18 @@ spec:
type: string
groupName:
type: string
groupRef:
description: Reference field for GroupName
properties:
from:
description: |-
AWSResourceReference provides all the values necessary to reference another
k8s resource for finding the identifier(Id/ARN/Name)
properties:
name:
type: string
type: object
type: object
peeringStatus:
type: string
userID:
Expand All @@ -128,6 +140,18 @@ spec:
type: string
vpcPeeringConnectionID:
type: string
vpcRef:
description: Reference field for VPCID
properties:
from:
description: |-
AWSResourceReference provides all the values necessary to reference another
k8s resource for finding the identifier(Id/ARN/Name)
properties:
name:
type: string
type: object
type: object
type: object
type: array
type: object
Expand Down Expand Up @@ -192,6 +216,18 @@ spec:
type: string
groupName:
type: string
groupRef:
description: Reference field for GroupName
properties:
from:
description: |-
AWSResourceReference provides all the values necessary to reference another
k8s resource for finding the identifier(Id/ARN/Name)
properties:
name:
type: string
type: object
type: object
peeringStatus:
type: string
userID:
Expand All @@ -200,6 +236,18 @@ spec:
type: string
vpcPeeringConnectionID:
type: string
vpcRef:
description: Reference field for VPCID
properties:
from:
description: |-
AWSResourceReference provides all the values necessary to reference another
k8s resource for finding the identifier(Id/ARN/Name)
properties:
name:
type: string
type: object
type: object
type: object
type: array
type: object
Expand Down
12 changes: 12 additions & 0 deletions generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,18 @@ resources:
references:
resource: VPC
path: Status.VPCID
IngressRules.UserIDGroupPairs.VPCID:
references:
resource: VPC
path: Status.VPCID
IngressRules.UserIDGroupPairs.GroupID:
references:
resource: SecurityGroup
path: Status.ID
IngressRules.UserIDGroupPairs.GroupName:
references:
resource: SecurityGroup
path: Spec.Name
renames:
operations:
CreateSecurityGroup:
Expand Down
48 changes: 48 additions & 0 deletions helm/crds/ec2.services.k8s.aws_securitygroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,18 @@ spec:
type: string
groupName:
type: string
groupRef:
description: Reference field for GroupName
properties:
from:
description: |-
AWSResourceReference provides all the values necessary to reference another
k8s resource for finding the identifier(Id/ARN/Name)
properties:
name:
type: string
type: object
type: object
peeringStatus:
type: string
userID:
Expand All @@ -128,6 +140,18 @@ spec:
type: string
vpcPeeringConnectionID:
type: string
vpcRef:
description: Reference field for VPCID
properties:
from:
description: |-
AWSResourceReference provides all the values necessary to reference another
k8s resource for finding the identifier(Id/ARN/Name)
properties:
name:
type: string
type: object
type: object
type: object
type: array
type: object
Expand Down Expand Up @@ -192,6 +216,18 @@ spec:
type: string
groupName:
type: string
groupRef:
description: Reference field for GroupName
properties:
from:
description: |-
AWSResourceReference provides all the values necessary to reference another
k8s resource for finding the identifier(Id/ARN/Name)
properties:
name:
type: string
type: object
type: object
peeringStatus:
type: string
userID:
Expand All @@ -200,6 +236,18 @@ spec:
type: string
vpcPeeringConnectionID:
type: string
vpcRef:
description: Reference field for VPCID
properties:
from:
description: |-
AWSResourceReference provides all the values necessary to reference another
k8s resource for finding the identifier(Id/ARN/Name)
properties:
name:
type: string
type: object
type: object
type: object
type: array
type: object
Expand Down
Loading