Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit 8953ff9

Browse files
committed
Openstack: Fill size attribute for the V3 API volumes
The getVolume method in OpenStack provider is not filling the Size for the V3 API type volumes. This breaks the PV resizing of Cinder volumes.
1 parent 4321fef commit 8953ff9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/cloudprovider/providers/openstack/openstack_volumes.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ func (volumes *VolumesV3) getVolume(volumeID string) (Volume, error) {
222222
ID: volumeV3.ID,
223223
Name: volumeV3.Name,
224224
Status: volumeV3.Status,
225+
Size: volumeV3.Size,
225226
}
226227

227228
if len(volumeV3.Attachments) > 0 {

0 commit comments

Comments
 (0)