Skip to content

Commit dc9d65a

Browse files
committed
Optional network spec subnet ID
1 parent df8dd75 commit dc9d65a

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed

api/v1beta2/network_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func (v *VPCSpec) IsIPv6Enabled() bool {
239239
// SubnetSpec configures an AWS Subnet.
240240
type SubnetSpec struct {
241241
// ID defines a unique identifier to reference this resource.
242-
ID string `json:"id"`
242+
ID string `json:"id,omitempty"`
243243

244244
// CidrBlock is the CIDR block to be used when the provider creates a managed VPC.
245245
CidrBlock string `json:"cidrBlock,omitempty"`

config/crd/bases/controlplane.cluster.x-k8s.io_awsmanagedcontrolplanes.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,6 @@ spec:
446446
description: Tags is a collection of tags describing the
447447
resource.
448448
type: object
449-
required:
450-
- id
451449
type: object
452450
type: array
453451
x-kubernetes-list-map-keys:
@@ -1715,8 +1713,6 @@ spec:
17151713
description: Tags is a collection of tags describing the
17161714
resource.
17171715
type: object
1718-
required:
1719-
- id
17201716
type: object
17211717
type: array
17221718
x-kubernetes-list-map-keys:

config/crd/bases/infrastructure.cluster.x-k8s.io_awsclusters.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,8 +1153,6 @@ spec:
11531153
description: Tags is a collection of tags describing the
11541154
resource.
11551155
type: object
1156-
required:
1157-
- id
11581156
type: object
11591157
type: array
11601158
x-kubernetes-list-map-keys:

config/crd/bases/infrastructure.cluster.x-k8s.io_awsclustertemplates.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,6 @@ spec:
757757
description: Tags is a collection of tags describing
758758
the resource.
759759
type: object
760-
required:
761-
- id
762760
type: object
763761
type: array
764762
x-kubernetes-list-map-keys:

0 commit comments

Comments
 (0)