Skip to content

Commit

Permalink
Add "cluster" type to subnet role validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Sep 16, 2024
1 parent 3770549 commit ba1d03e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1beta1/types_class.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ type SubnetClassSpec struct {
Name string `json:"name"`

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

// CIDRBlocks defines the subnet's address space, specified as one or more address prefixes in CIDR notation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ spec:
- node
- control-plane
- bastion
- cluster
- all
type: string
routeTable:
Expand Down Expand Up @@ -1057,6 +1058,7 @@ spec:
- node
- control-plane
- bastion
- cluster
- all
type: string
routeTable:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ spec:
- node
- control-plane
- bastion
- cluster
- all
type: string
securityGroup:
Expand Down Expand Up @@ -698,6 +699,7 @@ spec:
- node
- control-plane
- bastion
- cluster
- all
type: string
securityGroup:
Expand Down

0 comments on commit ba1d03e

Please sign in to comment.