Skip to content

Commit

Permalink
fix: allow setting overprovision ratio to 1
Browse files Browse the repository at this point in the history
Signed-off-by: Suleyman Akbas <sakbas@redhat.com>
  • Loading branch information
suleymanakbas91 committed Dec 5, 2023
1 parent a9b09ff commit b31b104
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/lvmcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type ThinPoolConfig struct {

// OverProvisionRatio is the factor by which additional storage can be provisioned compared to
// the available storage in the thin pool.
// +kubebuilder:validation:Minimum=2
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Required
// +required
OverprovisionRatio int `json:"overprovisionRatio"`
Expand Down
2 changes: 1 addition & 1 deletion bundle/manifests/lvm.topolvm.io_lvmclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ spec:
description: OverProvisionRatio is the factor by which
additional storage can be provisioned compared to
the available storage in the thin pool.
minimum: 2
minimum: 1
type: integer
sizePercent:
default: 90
Expand Down
2 changes: 1 addition & 1 deletion bundle/manifests/lvm.topolvm.io_lvmvolumegroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ spec:
description: OverProvisionRatio is the factor by which additional
storage can be provisioned compared to the available storage
in the thin pool.
minimum: 2
minimum: 1
type: integer
sizePercent:
default: 90
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/lvm.topolvm.io_lvmclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ spec:
description: OverProvisionRatio is the factor by which
additional storage can be provisioned compared to
the available storage in the thin pool.
minimum: 2
minimum: 1
type: integer
sizePercent:
default: 90
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/lvm.topolvm.io_lvmvolumegroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ spec:
description: OverProvisionRatio is the factor by which additional
storage can be provisioned compared to the available storage
in the thin pool.
minimum: 2
minimum: 1
type: integer
sizePercent:
default: 90
Expand Down
2 changes: 1 addition & 1 deletion docs/design/thin-provisioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The LVMS will create a thin pool LV in the Volume Group in order to create thinl

+ // OverProvisionRatio represents the ratio of overprovision that can
+ // be allowed on thin pools
+ // +kubebuilder:validation:Minimum=2
+ // +kubebuilder:validation:Minimum=1
+ OverprovisionRatio int `json:"overprovisionRatio,omitempty"`
}

Expand Down

0 comments on commit b31b104

Please sign in to comment.