mirror of
https://github.com/rancher/k3k.git
synced 2026-08-19 04:16:16 +00:00
removed enum definition from ClusterMode type
This commit is contained in:
@@ -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
@@ -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
@@ -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)
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user