From c7eb0d082a86964467d41e6b2a6bdfe11f1b7392 Mon Sep 17 00:00:00 2001 From: alloydsa <167860552+alloydsa@users.noreply.github.com> Date: Wed, 27 Nov 2024 10:22:55 +0530 Subject: [PATCH] Fix to patch pvc size on gcnv volume update --- storage_drivers/gcp/gcp_gcnv.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/storage_drivers/gcp/gcp_gcnv.go b/storage_drivers/gcp/gcp_gcnv.go index fcdb60e0b..033613810 100644 --- a/storage_drivers/gcp/gcp_gcnv.go +++ b/storage_drivers/gcp/gcp_gcnv.go @@ -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 }