Skip to content

Commit

Permalink
Update NVMe mininum blocksize
Browse files Browse the repository at this point in the history
  • Loading branch information
mondragonfx committed Sep 27, 2023
1 parent 6108a21 commit bf14699
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions driver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit bf14699

Please sign in to comment.