From 5854d6d44eef441bdd6a64f19ba191560db6df91 Mon Sep 17 00:00:00 2001 From: mondragonfx <35617339+mondragonfx@users.noreply.github.com> Date: Wed, 27 Sep 2023 12:45:29 -0400 Subject: [PATCH] Update NVMe mininum blocksize (#143) --- docs/kubernetes/README.md | 2 +- driver/controller.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/kubernetes/README.md b/docs/kubernetes/README.md index 7b738362..6404e8df 100644 --- a/docs/kubernetes/README.md +++ b/docs/kubernetes/README.md @@ -4,7 +4,7 @@ As of version `v0.6.0` there are two available Block Storage types that you can ### NVME Block Type -This Block type uses the storage class `vultr-block-storage`. It has a minimum deployment size of 10gb and a maximum of 100tb. +This Block type uses the storage class `vultr-block-storage`. It has a minimum deployment size of 1gb and a maximum of 100tb. It is currently available in the following regions: diff --git a/driver/controller.go b/driver/controller.go index 13ac157d..076cd8a2 100644 --- a/driver/controller.go +++ b/driver/controller.go @@ -39,7 +39,7 @@ const ( // NVME defaults blockTypeNvme = "high_perf" nvmeVolumeSizeInBytes int64 = 10 * giB - nvmeMinVolumeSizeInBytes int64 = 10 * giB + nvmeMinVolumeSizeInBytes int64 = 1 * giB nvmeMaxVolumeSizeInBytes int64 = 10 * tiB // HDD defaults @@ -584,7 +584,7 @@ func isValidCapability(caps []*csi.VolumeCapability) bool { // getStorageBytes returns storage size in bytes func getStorageBytes(capRange *csi.CapacityRange, blockType string) int64 { - // Default for HDD block is 40gb, NVME block is 10gb + // Default for HDD block is 40gb, NVME block is 1gb if capRange == nil && blockType == blockTypeNvme { return nvmeVolumeSizeInBytes } else if capRange == nil && blockType == blockTypeHDD {