From c59642bc270d98fe329d4429ed17e1ccd9d90648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20M=C3=B6ller?= Date: Mon, 27 May 2024 10:11:45 +0200 Subject: [PATCH] feat: subprovisioner small PR nits --- .../subprovisioner-integration-into-lvms.md | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/enhancements/local-storage/subprovisioner-integration-into-lvms.md b/enhancements/local-storage/subprovisioner-integration-into-lvms.md index 0af2010fb4..a3d44e373c 100644 --- a/enhancements/local-storage/subprovisioner-integration-into-lvms.md +++ b/enhancements/local-storage/subprovisioner-integration-into-lvms.md @@ -101,13 +101,13 @@ API scheme for `LVMCluster` CR: ```go - // The DeviceAccessPolicy type defines the accessibility of the lvm2 volume group backing the deviceClass. - type DeviceAccessPolicy string ++ // The DeviceAccessPolicy type defines the accessibility of the lvm2 volume group backing the deviceClass. ++ type DeviceAccessPolicy string - const ( - DeviceAccessPolicyShared DeviceAccessPolicy = "shared" - DeviceAccessPolicyNodeLocal DeviceAccessPolicy = "nodeLocal" - ) ++ const ( ++ DeviceAccessPolicyShared DeviceAccessPolicy = "shared" ++ DeviceAccessPolicyNodeLocal DeviceAccessPolicy = "nodeLocal" ++ ) // LVMClusterSpec defines the desired state of LVMCluster type LVMClusterSpec struct { @@ -160,11 +160,11 @@ API scheme for `LVMCluster` CR: // +optional FilesystemType DeviceFilesystemType `json:"fstype,omitempty"` - // Policy defines the policy for the deviceClass. - // TECH PREVIEW: shared will allow accessing the deviceClass from multiple nodes. - // The deviceClass will then be configured via shared volume group. - // +optional - // +kubebuilder:validation:Enum=shared;local ++ // Policy defines the policy for the deviceClass. ++ // TECH PREVIEW: shared will allow accessing the deviceClass from multiple nodes. ++ // The deviceClass will then be configured via shared volume group. ++ // +optional ++ // +kubebuilder:validation:Enum=shared;local + DeviceAccessPolicy DeviceAccessPolicy `json:"deviceAccessPolicy,omitempty"` }