From e5936b29e1eb0f3cb52e4e4f381a8c95d5805d06 Mon Sep 17 00:00:00 2001 From: Suleyman Akbas Date: Tue, 5 Dec 2023 11:27:34 +0100 Subject: [PATCH] fix: allow setting overprovision ratio to 1 Signed-off-by: Suleyman Akbas --- api/v1alpha1/lvmcluster_types.go | 2 +- bundle/manifests/lvm.topolvm.io_lvmclusters.yaml | 2 +- bundle/manifests/lvm.topolvm.io_lvmvolumegroups.yaml | 2 +- config/crd/bases/lvm.topolvm.io_lvmclusters.yaml | 2 +- config/crd/bases/lvm.topolvm.io_lvmvolumegroups.yaml | 2 +- doc/design/thin_pool.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/v1alpha1/lvmcluster_types.go b/api/v1alpha1/lvmcluster_types.go index 9aaa92391..44ba299a0 100644 --- a/api/v1alpha1/lvmcluster_types.go +++ b/api/v1alpha1/lvmcluster_types.go @@ -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"` diff --git a/bundle/manifests/lvm.topolvm.io_lvmclusters.yaml b/bundle/manifests/lvm.topolvm.io_lvmclusters.yaml index d3332525c..4a7963757 100644 --- a/bundle/manifests/lvm.topolvm.io_lvmclusters.yaml +++ b/bundle/manifests/lvm.topolvm.io_lvmclusters.yaml @@ -166,7 +166,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 diff --git a/bundle/manifests/lvm.topolvm.io_lvmvolumegroups.yaml b/bundle/manifests/lvm.topolvm.io_lvmvolumegroups.yaml index 2ca3fda94..875389c26 100644 --- a/bundle/manifests/lvm.topolvm.io_lvmvolumegroups.yaml +++ b/bundle/manifests/lvm.topolvm.io_lvmvolumegroups.yaml @@ -139,7 +139,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 diff --git a/config/crd/bases/lvm.topolvm.io_lvmclusters.yaml b/config/crd/bases/lvm.topolvm.io_lvmclusters.yaml index 087f090a0..4b8c0e17a 100644 --- a/config/crd/bases/lvm.topolvm.io_lvmclusters.yaml +++ b/config/crd/bases/lvm.topolvm.io_lvmclusters.yaml @@ -168,7 +168,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 diff --git a/config/crd/bases/lvm.topolvm.io_lvmvolumegroups.yaml b/config/crd/bases/lvm.topolvm.io_lvmvolumegroups.yaml index d48897ae1..5df603d51 100644 --- a/config/crd/bases/lvm.topolvm.io_lvmvolumegroups.yaml +++ b/config/crd/bases/lvm.topolvm.io_lvmvolumegroups.yaml @@ -141,7 +141,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 diff --git a/doc/design/thin_pool.md b/doc/design/thin_pool.md index 5505667f7..ebd34da89 100644 --- a/doc/design/thin_pool.md +++ b/doc/design/thin_pool.md @@ -48,7 +48,7 @@ The LVMO 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"` }