Skip to content

[release/1.2] images: only fetch the best matched manifest info#3421

Merged
crosbymichael merged 1 commit intocontainerd:release/1.2from
fuweid:cherry-pick-manifest
Jul 17, 2019
Merged

[release/1.2] images: only fetch the best matched manifest info#3421
crosbymichael merged 1 commit intocontainerd:release/1.2from
fuweid:cherry-pick-manifest

Conversation

@fuweid
Copy link
Copy Markdown
Member

@fuweid fuweid commented Jul 17, 2019

When client uses Pull action to pull image, it will limit the number of
manifest as one. But Unpack action will call Manifest to traverse all
the manifests including non-dowloaded one. If the platform has more than
one manifest, the Pull with unpack action will fail. And also, there is
no need to read non-best matched manifest. Therefore, the Manifest can
do the sort earlier.

Signed-off-by: Wei Fu [email protected]

When client uses Pull action to pull image, it will limit the number of
manifest as one. But Unpack action will call Manifest to traverse all
the manifests including non-dowloaded one. If the platform has more than
one manifest, the Pull with unpack action will fail. And also, there is
no need to read non-best matched manifest. Therefore, the Manifest can
do the sort earlier.

Signed-off-by: Wei Fu <[email protected]>
@fuweid fuweid changed the title images: only fetch the best matched manifest info [release/1.2] images: only fetch the best matched manifest info Jul 17, 2019
@fuweid fuweid added this to the 1.2.8 milestone Jul 17, 2019
@fuweid
Copy link
Copy Markdown
Member Author

fuweid commented Jul 17, 2019

fixes #3387

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jul 17, 2019

Codecov Report

Merging #3421 into release/1.2 will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           release/1.2    #3421   +/-   ##
============================================
  Coverage        43.66%   43.66%           
============================================
  Files              101      101           
  Lines            10816    10816           
============================================
  Hits              4723     4723           
  Misses            5357     5357           
  Partials           736      736
Flag Coverage Δ
#linux 47.25% <ø> (ø) ⬆️
#windows 40.78% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ef9f3a5...d528a69. Read the comment docs.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

@crosbymichael crosbymichael merged commit 18100a3 into containerd:release/1.2 Jul 17, 2019
@fuweid fuweid deleted the cherry-pick-manifest branch August 22, 2019 08:33
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.

4 participants