mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
glusterfs: Remove an outdated comment about GB vs GiB
This was originally added due to a misunderstanding of the documentation of Heketi (using a different convention). Heketi's documentation has meanwhile been clarified. Signed-off-by: Michael Adam <obnox@redhat.com>
This commit is contained in:
parent
064338951f
commit
2ec681632b
@ -741,7 +741,6 @@ func (p *glusterfsVolumeProvisioner) CreateVolume(gid int) (r *v1.GlusterfsVolum
|
||||
var clusterIDs []string
|
||||
customVolumeName := ""
|
||||
capacity := p.options.PVC.Spec.Resources.Requests[v1.ResourceName(v1.ResourceStorage)]
|
||||
// Glusterfs creates volumes in units of GiB, but heketi documentation incorrectly reports GBs
|
||||
sz := int(volume.RoundUpToGiB(capacity))
|
||||
glog.V(2).Infof("create volume of size: %d GiB", sz)
|
||||
if p.url == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user