-
Notifications
You must be signed in to change notification settings - Fork 2
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 CreateSnapshot handler for VolumeSnapshot support #38
Conversation
Signed-off-by: hlts2 <[email protected]>
Signed-off-by: hlts2 <[email protected]>
…Error Signed-off-by: hlts2 <[email protected]>
Signed-off-by: hlts2 <[email protected]>
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.
Minor suggestion but otherwise LGTM!
pkg/driver/controller_server.go
Outdated
// snapshotName := req.GetName() | ||
// sourceVolID := req.GetSourceVolumeId() |
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 think this line can move further up even before the log line, and reuse the variable snapshotName
and sourceVolID
everywhere, rather than calling req.GetName()
multiple times
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.
Thank you for catching it! After I fix it, I will merge this PR! 🚀
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 have fixed it: d12f0e8
Signed-off-by: hlts2 <[email protected]>
@rytswd Thank you for your review! I will merge this PR 🚀 |
WHAT
@Praveen005 have implemented CreateSnapshot handler.
This PR is mirror of #31
CreateSnapshot handler was previously developed as a forked repository, but the CI wasn't working due to a credential issue. Therefore, I temporarily created a new PR. I will fix the credential issue in a separate PR in the future. Sorry 🙏
Base code is cherry-picked from forked PR, so code author is not changed.
WHY
We plan to add support for VolumeSnapshot in the civo-csi driver.
To achieve this, we need to implement the following handlers.
FYI