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
cmd/ctr: add commit command to snapshot #1160
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1160 +/- ##
======================================
Coverage 28.1% 28.1%
======================================
Files 28 28
Lines 2832 2832
======================================
Hits 796 796
Misses 1887 1887
Partials 149 149 Continue to review full report at Codecov.
|
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
With one nit
cmd/ctr/snapshot.go
Outdated
} | ||
|
||
snapshotter := client.SnapshotService() | ||
err = snapshotter.Commit(ctx, target, id) |
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.
nit: just return snapshotter.Commit(...)
LGTM Thanks @darkowlzz |
This should be rebased with the merge of multiple snapshotters |
59d4cfc
to
9c7fd12
Compare
Can you squash these commits please? The CI failure seemed to the same race, lets see if passes after squash |
9c7fd12
to
6944f20
Compare
cmd/ctr/snapshot.go
Outdated
|
||
target := clicontext.String("target") | ||
if target == "" { | ||
return errors.New("target must be provided") |
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.
Let's not have a required flag and just have the usage be id target
3533958
to
c9a1b7d
Compare
Please rebase. |
Signed-off-by: Sunny Gogoi <me@darkowlzz.space>
c9a1b7d
to
912ddba
Compare
LGTM |
Remove an unused TODO.
Signed-off-by: Sunny Gogoi me@darkowlzz.space
Part of #1082