diff --git a/charts/k3k/templates/crds/k3k.io_clusters.yaml b/charts/k3k/templates/crds/k3k.io_clusters.yaml index 80d62d19..84af9d78 100644 --- a/charts/k3k/templates/crds/k3k.io_clusters.yaml +++ b/charts/k3k/templates/crds/k3k.io_clusters.yaml @@ -1289,19 +1289,14 @@ spec: are mirrored into the virtual cluster. type: boolean mode: - allOf: - - enum: - - shared - - virtual - - hcp - - enum: - - shared - - virtual - - hcp default: shared description: |- Mode specifies the cluster provisioning mode: "shared", "virtual" or "hcp". Defaults to "shared". This field is immutable. + enum: + - shared + - virtual + - hcp type: string x-kubernetes-validations: - message: mode is immutable diff --git a/charts/k3k/templates/crds/k3k.io_virtualclusterpolicies.yaml b/charts/k3k/templates/crds/k3k.io_virtualclusterpolicies.yaml index a708cca4..e4996125 100644 --- a/charts/k3k/templates/crds/k3k.io_virtualclusterpolicies.yaml +++ b/charts/k3k/templates/crds/k3k.io_virtualclusterpolicies.yaml @@ -50,17 +50,12 @@ spec: description: Spec defines the desired state of the VirtualClusterPolicy. properties: allowedMode: - allOf: - - enum: - - shared - - virtual - - hcp - - enum: - - shared - - virtual - - hcp default: shared description: AllowedMode specifies the allowed cluster provisioning mode. Defaults to "shared". + enum: + - shared + - virtual + - hcp type: string x-kubernetes-validations: - message: mode is immutable diff --git a/docs/crds/crds.adoc b/docs/crds/crds.adoc index cd57d5d8..152630a2 100644 --- a/docs/crds/crds.adoc +++ b/docs/crds/crds.adoc @@ -133,8 +133,7 @@ _Underlying type:_ _string_ ClusterMode is the possible provisioning mode of a Cluster. -_Validation:_ -- Enum: [shared virtual hcp] + _Appears In:_ diff --git a/docs/crds/crds.md b/docs/crds/crds.md index a43bd48b..406286c8 100644 --- a/docs/crds/crds.md +++ b/docs/crds/crds.md @@ -102,8 +102,7 @@ _Underlying type:_ _string_ ClusterMode is the possible provisioning mode of a Cluster. -_Validation:_ -- Enum: [shared virtual hcp] + _Appears in:_ - [ClusterSpec](#clusterspec) diff --git a/pkg/apis/k3k.io/v1beta1/types.go b/pkg/apis/k3k.io/v1beta1/types.go index 59f47198..fcf5c81f 100644 --- a/pkg/apis/k3k.io/v1beta1/types.go +++ b/pkg/apis/k3k.io/v1beta1/types.go @@ -412,9 +412,6 @@ type StorageClassSyncConfig struct { } // ClusterMode is the possible provisioning mode of a Cluster. -// -// +kubebuilder:validation:Enum=shared;virtual;hcp -// +kubebuilder:default="shared" type ClusterMode string const (