mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
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 ```
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user