mirror of https://github.com/k3s-io/k3s
Fix representation of the pv's capacity which provisioned by glusterfs
parent
52492e683f
commit
cf08516cb7
|
@ -729,7 +729,7 @@ func (p *glusterfsVolumeProvisioner) Provision() (*v1.PersistentVolume, error) {
|
|||
}
|
||||
|
||||
pv.Spec.Capacity = v1.ResourceList{
|
||||
v1.ResourceName(v1.ResourceStorage): resource.MustParse(fmt.Sprintf("%dGi", sizeGB)),
|
||||
v1.ResourceName(v1.ResourceStorage): resource.MustParse(fmt.Sprintf("%dG", sizeGB)),
|
||||
}
|
||||
return pv, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue