@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22kind : CustomResourceDefinition
33metadata :
44 annotations :
5- controller-gen.kubebuilder.io/version : v0.20.1
5+ controller-gen.kubebuilder.io/version : v0.17.3
66 creationTimestamp : null
77 name : lvmclusters.lvm.topolvm.io
88spec :
5858 class is the default. You can configure only a single
5959 default device class.
6060 type : boolean
61- deviceDiscoveryPolicy :
62- description : |-
63- DeviceDiscoveryPolicy specifies the policy for discovering devices for this device class.
64- Static means the volume group is created with devices found at install time; new devices are ignored.
65- Dynamic means devices are continuously discovered and added to the volume group.
66- When not set, new volume groups default to Static and existing volume groups default to Dynamic for backward compatibility.
67- enum :
68- - Static
69- - Dynamic
70- type : string
7161 deviceSelector :
7262 description : DeviceSelector contains the configuration to
7363 specify paths to the devices that you want to add to the
@@ -80,19 +70,13 @@ spec:
8070 Force wipe the devices only when you know that they do not contain any important data.
8171 type : boolean
8272 optionalPaths :
83- description : |-
84- OptionalPaths is a list of device paths. At least one path must resolve on each node.
85- Prefer stable, consistent paths such as /dev/disk/by-id/… instead of
86- /dev/sda, which may be renamed or reordered by the kernel on reboot.
87- This can be used to provide a single list of disk IDs across multiple nodes.
73+ description : OptionalPaths specify the optional device
74+ paths.
8875 items :
8976 type : string
9077 type : array
9178 paths :
92- description : |-
93- Paths is a list of device paths. All paths must resolve on each node.
94- Prefer stable, consistent paths such as /dev/disk/by-id/… instead of
95- /dev/sda, which may be renamed or reordered by the kernel on reboot.
79+ description : Paths specify the device paths.
9680 items :
9781 type : string
9882 type : array
@@ -106,10 +90,8 @@ spec:
10690 enum :
10791 - xfs
10892 - ext4
93+ - " "
10994 type : string
110- x-kubernetes-validations :
111- - message : fstype is immutable
112- rule : oldSelf == self
11395 name :
11496 description : Name specifies a name for the device class
11597 maxLength : 245
@@ -207,55 +189,6 @@ spec:
207189 - nodeSelectorTerms
208190 type : object
209191 x-kubernetes-map-type : atomic
210- storageClassOptions :
211- description : StorageClassOptions allows customization of
212- the StorageClass created for this device class.
213- properties :
214- additionalLabels :
215- additionalProperties :
216- type : string
217- description : |-
218- AdditionalLabels sets additional labels on the StorageClass.
219- This is the only StorageClassOptions field that can be changed after creation.
220- maxProperties : 16
221- type : object
222- additionalParameters :
223- additionalProperties :
224- type : string
225- default : {}
226- description : |-
227- AdditionalParameters sets additional parameters on the StorageClass.
228- LVMS-owned keys (topolvm.io/device-class, csi.storage.k8s.io/fstype) cannot be overridden.
229- This field is immutable after creation.
230- maxProperties : 16
231- type : object
232- x-kubernetes-validations :
233- - message : additionalParameters is immutable once set
234- rule : oldSelf == self
235- reclaimPolicy :
236- default : Delete
237- description : |-
238- ReclaimPolicy sets the reclaim policy for PVs provisioned by this device class.
239- When set to Retain, PVs and their underlying logical volumes are preserved when PVCs are deleted.
240- enum :
241- - Delete
242- - Retain
243- type : string
244- x-kubernetes-validations :
245- - message : reclaimPolicy is immutable once set
246- rule : oldSelf == self
247- volumeBindingMode :
248- default : WaitForFirstConsumer
249- description : VolumeBindingMode sets the binding mode
250- for PVs provisioned by this device class.
251- enum :
252- - WaitForFirstConsumer
253- - Immediate
254- type : string
255- x-kubernetes-validations :
256- - message : volumeBindingMode is immutable once set
257- rule : oldSelf == self
258- type : object
259192 thinPoolConfig :
260193 description : ThinPoolConfig contains the configuration to
261194 create a thin pool in the LVM volume group. If you exclude
@@ -327,13 +260,8 @@ spec:
327260 - name
328261 - overprovisionRatio
329262 type : object
330- required :
331- - name
332263 type : object
333264 type : array
334- x-kubernetes-list-map-keys :
335- - name
336- x-kubernetes-list-type : map
337265 type : object
338266 tolerations :
339267 description : Tolerations to apply to nodes to act on
@@ -355,10 +283,9 @@ spec:
355283 operator :
356284 description : |-
357285 Operator represents a key's relationship to the value.
358- Valid operators are Exists, Equal, Lt, and Gt . Defaults to Equal.
286+ Valid operators are Exists and Equal . Defaults to Equal.
359287 Exists is equivalent to wildcard for value, so that a pod can
360288 tolerate all taints of a particular category.
361- Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
362289 type : string
363290 tolerationSeconds :
364291 description : |-
@@ -453,16 +380,16 @@ spec:
453380 deviceclass on the node
454381 properties :
455382 deviceDiscoveryPolicy :
456- default : RuntimeStatic
383+ default : RuntimeDynamic
457384 description : |-
458- DeviceDiscoveryPolicy is a field to indicate the effective device discovery policy for this volume group.
459- Preconfigured indicates explicit DeviceSelector paths are configured and the discovery policy is not applicable.
460- RuntimeDynamic indicates devices are discovered and added dynamically at runtime (no explicit paths, Dynamic policy).
461- RuntimeStatic indicates devices were discovered at install time and new devices are ignored (no explicit paths, Static policy).
385+ DeviceDiscoveryPolicy is a field to indicate whether the devices are discovered
386+ at runtime or preconfigured through a DeviceSelector
387+ Setting this to DeviceDiscoveryPolicyPreconfigured indicates the devices are preconfigured through a DeviceSelector.
388+ Setting this to DeviceDiscoveryPolicyRuntimeDynamic indicates the devices are added to the VG dynamically if they are present at runtime.
389+ By default, the value is set to RuntimeDynamic.
462390 enum :
463391 - Preconfigured
464392 - RuntimeDynamic
465- - RuntimeStatic
466393 type : string
467394 devices :
468395 description : Devices is the list of devices used by the
0 commit comments