-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Tar unpack progress through transfer service #11921
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
Conversation
| "github.com/containerd/platforms" | ||
| "github.com/opencontainers/image-spec/identity" | ||
| ocispec "github.com/opencontainers/image-spec/specs-go/v1" | ||
| "github.com/urfave/cli/v2" |
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.
This linter changes should be probably a separate PR?
cmd/ctr/commands/images/pull.go
Outdated
| roots = []*progressNode{} | ||
| progress transfer.ProgressFunc | ||
| pc = make(chan transfer.Progress, 1) | ||
| pc = make(chan transfer.Progress, 5) |
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.
This number seems to need an explanation
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.
Added, although this is still kind of a bandaid solution. Right now the progress drain is a bit racy and we could probably add a better solution, especially if we could just rely on some indicator in the progress stream that the end has been reached (with a timeout accounting for it not being reached).
|
Probably this should be rebased to run the tests with the latest main |
core/diff/apply/apply.go
Outdated
| return pr.c.Close() | ||
| } | ||
|
|
||
| type closeReader struct { |
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: should we call it readCloser to more align with go's ReadCloser?
Allows the apply process to return progress on the tar apply operation. Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
a6bd023 to
479cf42
Compare
Adds unpack to transfer service.
See https://asciinema.org/a/6bJRKKKuqkAVV51GjN8SBSeYu
A few notes...