Unverified Commit 54a4de04 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #55956 from saheienko/glusterfs-pv-capacity

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fix representation of the pv's capacity which provisioned by glusterfs **What this PR does / why we need it**: This PR fixes representation of the pv's capacity which provisioned by glusterfs. Gluster's volume size is calculated in GB, and than this value is setted as GiB for pv's storage capacity. **Which issue(s) this PR fixes**: Fixes #55937 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
parents 00b0f6fd cf08516c
...@@ -729,7 +729,7 @@ func (p *glusterfsVolumeProvisioner) Provision() (*v1.PersistentVolume, error) { ...@@ -729,7 +729,7 @@ func (p *glusterfsVolumeProvisioner) Provision() (*v1.PersistentVolume, error) {
} }
pv.Spec.Capacity = v1.ResourceList{ 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 return pv, nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment