mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 08:40:42 +00:00
Glusterfs expands in units of GB not GiB
This commit is contained in:
parent
db809c0eb7
commit
7e8b4a2d60
@ -1080,7 +1080,7 @@ func (plugin *glusterfsPlugin) ExpandVolumeDevice(spec *volume.Spec, newSize res
|
|||||||
|
|
||||||
// Find out delta size
|
// Find out delta size
|
||||||
expansionSize := (newSize.Value() - oldSize.Value())
|
expansionSize := (newSize.Value() - oldSize.Value())
|
||||||
expansionSizeGB := int(volume.RoundUpSize(expansionSize, 1024*1024*1024))
|
expansionSizeGB := int(volume.RoundUpSize(expansionSize, 1000*1000*1000))
|
||||||
|
|
||||||
// Make volume expansion request
|
// Make volume expansion request
|
||||||
volumeExpandReq := &gapi.VolumeExpandRequest{Size: expansionSizeGB}
|
volumeExpandReq := &gapi.VolumeExpandRequest{Size: expansionSizeGB}
|
||||||
|
Loading…
Reference in New Issue
Block a user