Skip to content

Commit ba1d03e

Browse files
committed
Add "cluster" type to subnet role validation
1 parent 3770549 commit ba1d03e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
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;all
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ spec:
307307
- node
308308
- control-plane
309309
- bastion
310+
- cluster
310311
- all
311312
type: string
312313
routeTable:
@@ -1057,6 +1058,7 @@ spec:
10571058
- node
10581059
- control-plane
10591060
- bastion
1061+
- cluster
10601062
- all
10611063
type: string
10621064
routeTable:

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ spec:
204204
- node
205205
- control-plane
206206
- bastion
207+
- cluster
207208
- all
208209
type: string
209210
securityGroup:
@@ -698,6 +699,7 @@ spec:
698699
- node
699700
- control-plane
700701
- bastion
702+
- cluster
701703
- all
702704
type: string
703705
securityGroup:

0 commit comments

Comments
 (0)