removed enum definition from ClusterMode type

This commit is contained in:
Enrico Candino
2026-06-16 16:15:17 +02:00
parent 65c30fb755
commit 78b433eff0
5 changed files with 10 additions and 25 deletions
@@ -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
@@ -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
+1 -2
View File
@@ -133,8 +133,7 @@ _Underlying type:_ _string_
ClusterMode is the possible provisioning mode of a Cluster.
_Validation:_
- Enum: [shared virtual hcp]
_Appears In:_
+1 -2
View File
@@ -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)
-3
View File
@@ -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 (