Skip to content

Commit

Permalink
feat: subprovisioner small PR nits
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobmoellerdev committed Jul 11, 2024
1 parent dd03892 commit c59642b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions enhancements/local-storage/subprovisioner-integration-into-lvms.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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"`
}

Expand Down

0 comments on commit c59642b

Please sign in to comment.