Skip to content

Commit

Permalink
Fix to patch pvc size on gcnv volume update
Browse files Browse the repository at this point in the history
  • Loading branch information
alloydsa authored Nov 27, 2024
1 parent 2e0e87f commit c7eb0d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storage_drivers/gcp/gcp_gcnv.go
Original file line number Diff line number Diff line change
Expand Up @@ -1912,6 +1912,10 @@ func (d *NASStorageDriver) Resize(ctx context.Context, volConfig *storage.Volume

// If the volume is already the requested size, there's nothing to do
if int64(sizeWithReserveBytes) == volume.SizeBytes {
volConfigSize := strconv.FormatUint(sizeBytes, 10)
if volConfigSize != volConfig.Size {
volConfig.Size = volConfigSize
}
return nil
}

Expand Down

0 comments on commit c7eb0d0

Please sign in to comment.