-
Notifications
You must be signed in to change notification settings - Fork 950
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
feature: split image pull interface #2608
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2608 +/- ##
==========================================
- Coverage 69.45% 69.44% -0.01%
==========================================
Files 279 279
Lines 18833 18834 +1
==========================================
- Hits 13080 13079 -1
+ Misses 4287 4286 -1
- Partials 1466 1469 +3
|
LGTM |
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
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.
oops. I miss that. If there is any error from unpack
and StoreImageReference
, we should send it to the stream
. Otherwise, the user doesn't know failure during the unpack.
And we can't close stream
in the FetchImage
. it should be closed at outside.
@fuweid , I move close json stream to daemon package |
Actually, there is no real Pull interface in containerd, image pull do not need to unpack but only run a container need. Split Pull operation into two operations, fetch and unpack. Let pouchd deal with pulled image. Signed-off-by: Ace-Tang <aceapril@126.com>
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
Actually, there is no real Pull interface in containerd, image pull
do not need to unpack but only run a container need. Split Pull
operation into two operations, fetch and unpack. Let pouchd deal with
pulled image.
Signed-off-by: Ace-Tang aceapril@126.com
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews