-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add support for expanding volumes #30
Add support for expanding volumes #30
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks about right to me. I was thinking the ControllerExpandVolume
call should at least check whether the entirety of the BeeGFS file system was big enough to handle the requested capacity, but it looks like CreateVolume
doesn't do this either. That check should be introduced in both locations simultaneously if it ever is.
4f51ff1
to
4f37cf1
Compare
Thanks for the review! I also considered a check to verify the available/total capacity was less than the requested capacity, but since there is currently never any checking around capacity I thought it better not to. Agreed if this is added it should be done universally. By the way, after reviewing the first test failure I realized even though this is a no-op, we must still check we got a valid volume ID so I fixed that and also set |
Update documentation to reflect the new functionality
It took a little longer than I intended to get back to this, but volume expansion now works when the driver is deployed using the operator. If you have time, would definitely welcome a second set of eyes on those changes! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm in no position to test these changes, and I don't remember enough about the operator setup to know if everything is above board there, but it all looks reasonable.
Left a couple of comments, but no blockers in my opinion.
Looks like I can't resolve the conversations, but the answers are good. Feel free to resolve them and merge when convenient. |
Good to know, I went ahead and invited your as a collaborator for next time :) Thanks again! |
Checklist before merging:
go.mod
or equivalent been updated to point at a version that contains the related changes?Which issue(s) does this PR address?
Resolves #29
Does this PR depend on any other PRs to be merged first?
No
What does this PR do / why do we need it?
While currently volume "capacity" has no meaning as far as the driver is concerned, some\ applications rely on the capacity of the PV/PVC in the K8s API to make certain decisions. For these applications it is helpful to support volume resizing.
Are there any specific topics we should discuss before merging?