Skip to content

do not return error if requested volume size is the current volume size #472

@rajatjindal

Description

@rajatjindal

I have a scenario where I was trying to expand the volume, and was running into some issues on my end, so I end up resizing the volume from the UI manually.

Now in the k8s cluster, it still shows the old size (16Gi), and in the UI it shows the new size (100Gi).

But now when I am trying to persist the change via my ci/cd pipeline, I keep getting error:

  Warning  VolumeResizeFailed  26s (x9 over 33s)     external-resizer linodebs.csi.linode.com  resize volume "pvc-xxxxxxxxxxx" by resizer "linodebs.csi.linode.com" failed: rpc error: code = Internal desc = resize volume xxxxxxxx: [400] Storage volumes can only be resized up

maybe we should not return the error if the expected size and the actual size are same when reconciling here.

I am happy to submit a PR if this looks like an acceptable request.

thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions