-
Notifications
You must be signed in to change notification settings - Fork 260
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: implement snapshots as tarballs #430
feat: implement snapshots as tarballs #430
Conversation
23a969f
to
0db9e5d
Compare
Pull Request Test Coverage Report for Build 4597662542
💛 - Coveralls |
when the main work of this feature is almost done, pls also add some unit tests, ut coverage is decreasing a lot
|
0db9e5d
to
37dfc6a
Compare
it's reviewable again :) |
a140434
to
ba82cb4
Compare
3b4adc7
to
826d2f3
Compare
log
csi-driver-nfs/test/external-e2e/testdriver.yaml Lines 6 to 7 in 826d2f3
EDIT: for future reference, fixed in 5643e5f and fd1f166, the |
ae14b0e
to
fac946a
Compare
169a85e
to
30667a7
Compare
after other PRs merged, there was a |
@wozniakjan could you squash the commits to only a few commits? |
30667a7
to
7d38d49
Compare
Thanks for pinging, rebased and did the best effort to logically squash commits, ptal @andyzhangx |
charts/latest/csi-driver-nfs/templates/setup-snapshot-controller.yaml
Outdated
Show resolved
Hide resolved
ce8c44e
to
089eb0c
Compare
$ helm package charts/latest/csi-driver-nfs -d charts/latest/
$ go mod tidy && go mod vendor
089eb0c
to
6881ee5
Compare
Thank you for adding this feature! Will there be a status or event I can listen for to be sure the snapshot has succeeded? The scenario is shutting down a database pod (to flush to disk), requesting a snapshot and then waiting for it to finish before starting the database pod again. |
the And just like you are used to with other kubernetes resources, you can run
to debug for any errors |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, wozniakjan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR proposes simple support for
VolumeSnapshots
as tarballs created withThe reason why
[src_vol_uuid]
is included in the snapshot path is to be able to efficiently discoverAlreadyExists
casesIt is the second out of three intended PRs to provide basic snapshot workflow including volume cloning from snapshots. It is preceded by #426 which implemented volume cloning from other volumes.
Which issue(s) this PR fixes:
Moving forward with snapshots as discussed in #31
Special notes for your reviewer:
Some parts of this PR related to helm chart and external-snapshotter are not ideal. As a followup task, I would like to attempt to address kubernetes-csi/external-snapshotter#812. That way all csi-driver helm charts including this one, instead of embedding external-snapshotter CRDs and controller resources and duplicating them, they could just add the official external-snapshotter chart as a dependency. This should also simplify updating to new releases. But not in scope to be addressed here.
Does this PR introduce a user-facing change?: