Skip to content

Commit 391452a

Browse files
committed
Revert "Make subnet spec id field required for SSA to work with CC"
This reverts commit 1bc6ce8.
1 parent b36e26e commit 391452a

4 files changed

+1
-23
lines changed

api/v1beta2/network_types.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ func (v *VPCSpec) IsIPv6Enabled() bool {
348348
// SubnetSpec configures an AWS Subnet.
349349
type SubnetSpec struct {
350350
// ID defines a unique identifier to reference this resource.
351-
ID string `json:"id"`
351+
ID string `json:"id,omitempty"`
352352

353353
// CidrBlock is the CIDR block to be used when the provider creates a managed VPC.
354354
CidrBlock string `json:"cidrBlock,omitempty"`
@@ -390,8 +390,6 @@ func (s *SubnetSpec) String() string {
390390
}
391391

392392
// Subnets is a slice of Subnet.
393-
// +listType=map
394-
// +listMapKey=id
395393
type Subnets []SubnetSpec
396394

397395
// ToMap returns a map from id to subnet.

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -520,13 +520,8 @@ spec:
520520
description: Tags is a collection of tags describing the
521521
resource.
522522
type: object
523-
required:
524-
- id
525523
type: object
526524
type: array
527-
x-kubernetes-list-map-keys:
528-
- id
529-
x-kubernetes-list-type: map
530525
vpc:
531526
description: VPC configuration.
532527
properties:
@@ -2091,13 +2086,8 @@ spec:
20912086
description: Tags is a collection of tags describing the
20922087
resource.
20932088
type: object
2094-
required:
2095-
- id
20962089
type: object
20972090
type: array
2098-
x-kubernetes-list-map-keys:
2099-
- id
2100-
x-kubernetes-list-type: map
21012091
vpc:
21022092
description: VPC configuration.
21032093
properties:

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,13 +1323,8 @@ spec:
13231323
description: Tags is a collection of tags describing the
13241324
resource.
13251325
type: object
1326-
required:
1327-
- id
13281326
type: object
13291327
type: array
1330-
x-kubernetes-list-map-keys:
1331-
- id
1332-
x-kubernetes-list-type: map
13331328
vpc:
13341329
description: VPC configuration.
13351330
properties:

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -930,13 +930,8 @@ spec:
930930
description: Tags is a collection of tags describing
931931
the resource.
932932
type: object
933-
required:
934-
- id
935933
type: object
936934
type: array
937-
x-kubernetes-list-map-keys:
938-
- id
939-
x-kubernetes-list-type: map
940935
vpc:
941936
description: VPC configuration.
942937
properties:

0 commit comments

Comments
 (0)