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

Add DeleteSnapshot handler for VolumeSnapshot support #33

Merged
merged 7 commits into from
Nov 27, 2024

Conversation

hlts2
Copy link
Member

@hlts2 hlts2 commented Nov 25, 2024

WHAT

I have implemented DeleteSnapshot handler.

WHY

We plan to add support for VolumeSnapshot in the civo-csi driver.
To achieve this, we need to implement the following handlers.

In this PR, I have implemented the DeleteSnapshot handler.

FYI

⚠️ The client-side implementation is not yet complete, so some parts are impelemented with comments. Once all the implementations are finished, I will uncomment the code.

Signed-off-by: hlts2 <[email protected]>
Signed-off-by: hlts2 <[email protected]>
@hlts2 hlts2 self-assigned this Nov 25, 2024
@hlts2 hlts2 requested a review from rytswd November 25, 2024 09:17
@hlts2 hlts2 marked this pull request as ready for review November 25, 2024 17:27
@@ -590,7 +591,32 @@ func (d *Driver) CreateSnapshot(context.Context, *csi.CreateSnapshotRequest) (*c
}

// DeleteSnapshot is part of implementing Snapshot & Restore functionality, but we don't support that
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should "but we don't support that" be removed from the comment now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Praveen005

Thank you for your comment 🙏
I agree; this should be revised! However, removing it entirely might suggest that this feature is already supported, so I believe it would be better to adjust the phrasing.
How about the following comment? 🤔

DeleteSnapshot is part of implementing Snapshot & Restore functionality, and it will be supported in the future.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but will have to be updated later.

something like, "// DeleteSnapshot is implemented to support Snapshot & Restore functionality, allowing snapshots to be deleted as needed." can work too. As this code will be merged only when all pieces are in place I guess. what do you say?

Copy link
Member Author

@hlts2 hlts2 Nov 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it looks good to me! Thank you 🙏

As this code will be merged only when all pieces are in place I guess. what do you say?

I was talking with Ryota about this point. Since this implementation does not particularly affect the existing behavior, we can merge this PR!

@hlts2 hlts2 merged commit 1eaa5d6 into master Nov 27, 2024
6 checks passed
@hlts2 hlts2 deleted the feat/add-delete-snapshot branch November 27, 2024 02:42
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