From 76ce65f1d9773cc14fb06ae96ec486d78e1a9d89 Mon Sep 17 00:00:00 2001 From: Matt Boersma Date: Mon, 16 Sep 2024 14:06:16 -0600 Subject: [PATCH] Add "cluster" type to subnet role validation --- api/v1beta1/types_class.go | 2 +- .../bases/infrastructure.cluster.x-k8s.io_azureclusters.yaml | 4 ++-- ...infrastructure.cluster.x-k8s.io_azureclustertemplates.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/v1beta1/types_class.go b/api/v1beta1/types_class.go index 562e5bc58df..308c31492a0 100644 --- a/api/v1beta1/types_class.go +++ b/api/v1beta1/types_class.go @@ -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 Role SubnetRole `json:"role"` // CIDRBlocks defines the subnet's address space, specified as one or more address prefixes in CIDR notation. diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_azureclusters.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_azureclusters.yaml index c3d2058bc13..06dce94e2c1 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_azureclusters.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_azureclusters.yaml @@ -307,7 +307,7 @@ spec: - node - control-plane - bastion - - all + - cluster type: string routeTable: description: RouteTable defines the route table that should @@ -1057,7 +1057,7 @@ spec: - node - control-plane - bastion - - all + - cluster type: string routeTable: description: RouteTable defines the route table that should diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_azureclustertemplates.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_azureclustertemplates.yaml index 1a795e4f16e..55af109a657 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_azureclustertemplates.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_azureclustertemplates.yaml @@ -204,7 +204,7 @@ spec: - node - control-plane - bastion - - all + - cluster type: string securityGroup: description: SecurityGroup defines the NSG (network @@ -698,7 +698,7 @@ spec: - node - control-plane - bastion - - all + - cluster type: string securityGroup: description: SecurityGroup defines the NSG (network