Skip to content

Commit

Permalink
codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
mbbush committed Dec 7, 2023
1 parent 291648f commit 9d304e4
Show file tree
Hide file tree
Showing 5 changed files with 253 additions and 46 deletions.
50 changes: 25 additions & 25 deletions apis/iot/v1beta1/zz_generated.deepcopy.go

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

37 changes: 37 additions & 0 deletions apis/iot/v1beta1/zz_generated.resolvers.go

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

30 changes: 23 additions & 7 deletions apis/iot/v1beta1/zz_topicruledestination_types.go

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

8 changes: 5 additions & 3 deletions examples-generated/iot/topicruledestination.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ spec:
- roleArnSelector:
matchLabels:
testing.upbound.io/example-name: example
securityGroups:
- ${aws_security_group.example.id}
subnetIds: ${aws_subnet.example[*].id}
securityGroupRefs:
- name: example
subnetIdSelector:
matchLabels:
testing.upbound.io/example-name: example[*]
vpcIdSelector:
matchLabels:
testing.upbound.io/example-name: example
174 changes: 163 additions & 11 deletions package/crds/iot.aws.upbound.io_topicruledestinations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,174 @@ spec:
type: string
type: object
type: object
securityGroupRefs:
description: References to SecurityGroup in ec2 to populate
securityGroups.
items:
description: A Reference to a named object.
properties:
name:
description: Name of the referenced object.
type: string
policy:
description: Policies for referencing.
properties:
resolution:
default: Required
description: Resolution specifies whether resolution
of this reference is required. The default is
'Required', which means the reconcile will fail
if the reference cannot be resolved. 'Optional'
means this reference will be a no-op if it cannot
be resolved.
enum:
- Required
- Optional
type: string
resolve:
description: Resolve specifies when this reference
should be resolved. The default is 'IfNotPresent',
which will attempt to resolve the reference
only when the corresponding field is not present.
Use 'Always' to resolve the reference on every
reconcile.
enum:
- Always
- IfNotPresent
type: string
type: object
required:
- name
type: object
type: array
securityGroupSelector:
description: Selector for a list of SecurityGroup in ec2
to populate securityGroups.
properties:
matchControllerRef:
description: MatchControllerRef ensures an object with
the same controller reference as the selecting object
is selected.
type: boolean
matchLabels:
additionalProperties:
type: string
description: MatchLabels ensures an object with matching
labels is selected.
type: object
policy:
description: Policies for selection.
properties:
resolution:
default: Required
description: Resolution specifies whether resolution
of this reference is required. The default is
'Required', which means the reconcile will fail
if the reference cannot be resolved. 'Optional'
means this reference will be a no-op if it cannot
be resolved.
enum:
- Required
- Optional
type: string
resolve:
description: Resolve specifies when this reference
should be resolved. The default is 'IfNotPresent',
which will attempt to resolve the reference only
when the corresponding field is not present. Use
'Always' to resolve the reference on every reconcile.
enum:
- Always
- IfNotPresent
type: string
type: object
type: object
securityGroups:
description: The security groups of the VPC destination.
items:
type: string
type: array
subnetIdRefs:
description: References to Subnet in ec2 to populate subnetIds.
items:
description: A Reference to a named object.
properties:
name:
description: Name of the referenced object.
type: string
policy:
description: Policies for referencing.
properties:
resolution:
default: Required
description: Resolution specifies whether resolution
of this reference is required. The default is
'Required', which means the reconcile will fail
if the reference cannot be resolved. 'Optional'
means this reference will be a no-op if it cannot
be resolved.
enum:
- Required
- Optional
type: string
resolve:
description: Resolve specifies when this reference
should be resolved. The default is 'IfNotPresent',
which will attempt to resolve the reference
only when the corresponding field is not present.
Use 'Always' to resolve the reference on every
reconcile.
enum:
- Always
- IfNotPresent
type: string
type: object
required:
- name
type: object
type: array
subnetIdSelector:
description: Selector for a list of Subnet in ec2 to populate
subnetIds.
properties:
matchControllerRef:
description: MatchControllerRef ensures an object with
the same controller reference as the selecting object
is selected.
type: boolean
matchLabels:
additionalProperties:
type: string
description: MatchLabels ensures an object with matching
labels is selected.
type: object
policy:
description: Policies for selection.
properties:
resolution:
default: Required
description: Resolution specifies whether resolution
of this reference is required. The default is
'Required', which means the reconcile will fail
if the reference cannot be resolved. 'Optional'
means this reference will be a no-op if it cannot
be resolved.
enum:
- Required
- Optional
type: string
resolve:
description: Resolve specifies when this reference
should be resolved. The default is 'IfNotPresent',
which will attempt to resolve the reference only
when the corresponding field is not present. Use
'Always' to resolve the reference on every reconcile.
enum:
- Always
- IfNotPresent
type: string
type: object
type: object
subnetIds:
description: The subnet IDs of the VPC destination.
items:
Expand Down Expand Up @@ -274,17 +437,6 @@ spec:
description: Configuration of the virtual private cloud (VPC)
connection. For more info, see the AWS documentation.
items:
properties:
securityGroups:
description: The security groups of the VPC destination.
items:
type: string
type: array
subnetIds:
description: The subnet IDs of the VPC destination.
items:
type: string
type: array
type: object
type: array
type: object
Expand Down

0 comments on commit 9d304e4

Please sign in to comment.