Skip to content

Commit d414308

Browse files
authored
Merge pull request #5133 from mboersma/update-subnet-role-validation
Add "cluster" type to subnet role validation
2 parents 3770549 + 76ce65f commit d414308

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

api/v1beta1/types_class.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ type SubnetClassSpec struct {
473473
Name string `json:"name"`
474474

475475
// Role defines the subnet role (eg. Node, ControlPlane)
476-
// +kubebuilder:validation:Enum=node;control-plane;bastion;all
476+
// +kubebuilder:validation:Enum=node;control-plane;bastion;cluster
477477
Role SubnetRole `json:"role"`
478478

479479
// CIDRBlocks defines the subnet's address space, specified as one or more address prefixes in CIDR notation.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ spec:
307307
- node
308308
- control-plane
309309
- bastion
310-
- all
310+
- cluster
311311
type: string
312312
routeTable:
313313
description: RouteTable defines the route table that should
@@ -1057,7 +1057,7 @@ spec:
10571057
- node
10581058
- control-plane
10591059
- bastion
1060-
- all
1060+
- cluster
10611061
type: string
10621062
routeTable:
10631063
description: RouteTable defines the route table that should

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ spec:
204204
- node
205205
- control-plane
206206
- bastion
207-
- all
207+
- cluster
208208
type: string
209209
securityGroup:
210210
description: SecurityGroup defines the NSG (network
@@ -698,7 +698,7 @@ spec:
698698
- node
699699
- control-plane
700700
- bastion
701-
- all
701+
- cluster
702702
type: string
703703
securityGroup:
704704
description: SecurityGroup defines the NSG (network

0 commit comments

Comments
 (0)