Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: non-destructive increase of a storage volume size #1122

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

NamelessOne91
Copy link

@NamelessOne91 NamelessOne91 commented Oct 24, 2024

Related to #952 and #1017

This PR adds support for a non-destructive resize when a storage volume size is increased.
Shrinking a storage volume will still ultimately result in destroying the existing one and recreating it.

It would have been possible to handle both cases, shrinking and expanding, in the UpdateContext function, but having a CustomizeDiff function allows to correctly differentiate between a resource update and a destroy + add, notifying it to the user.

@NamelessOne91 NamelessOne91 changed the title Feat: Allow increasing a storage volume size Feat: non-destructive increase of a storage volume size Oct 24, 2024
@scabala
Copy link
Contributor

scabala commented Oct 25, 2024

Thank you for this PR @NamelessOne91!

I'll try to test it in following days and give my feedback.

@NamelessOne91 NamelessOne91 marked this pull request as ready for review October 30, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants