Skip to content

Commit c7eb0d0

Browse files
authored
Fix to patch pvc size on gcnv volume update
1 parent 2e0e87f commit c7eb0d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

storage_drivers/gcp/gcp_gcnv.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,6 +1912,10 @@ func (d *NASStorageDriver) Resize(ctx context.Context, volConfig *storage.Volume
19121912

19131913
// If the volume is already the requested size, there's nothing to do
19141914
if int64(sizeWithReserveBytes) == volume.SizeBytes {
1915+
volConfigSize := strconv.FormatUint(sizeBytes, 10)
1916+
if volConfigSize != volConfig.Size {
1917+
volConfig.Size = volConfigSize
1918+
}
19151919
return nil
19161920
}
19171921

0 commit comments

Comments
 (0)