-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Enable to propagate necessary information to snapshotter during unpack #3911
Conversation
Though containerd gives ChainID to backend snapshotters during unpack for searching snapshots to be skipped downloading the contents, ChainID isn't enough for some snapshotters which require additional information of layers. Some examples are remote snapshotters which is based on stargz filesystem (requires image-related information to query the contents to docker registry) and those which is based on CernVM-FS (requires manifest digest, etc. for providing squashed rootfs). This commit solves this issue by enabling a handler to inject additional information of layers to snapshotters during unpack. Signed-off-by: Kohei Tokunaga <[email protected]>
Build succeeded.
|
Codecov Report
@@ Coverage Diff @@
## master #3911 +/- ##
==========================================
- Coverage 42.47% 42.43% -0.04%
==========================================
Files 130 130
Lines 14716 14706 -10
==========================================
- Hits 6251 6241 -10
Misses 7544 7544
Partials 921 921
Continue to review full report at Codecov.
|
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
Signed-off-by: Kohei Tokunaga <[email protected]>
Build succeeded.
|
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
LGTM @ktock thanks for the PR! |
Though containerd gives ChainID to backend snapshotters during unpack for
searching snapshots to be skipped downloading the contents, ChainID isn't enough
for some snapshotters which require additional information of layers.
Some examples are remote snapshotters which is based on stargz filesystem
(requires image-related information to query the contents to docker registry)
and those which is based on CernVM-FS (requires manifest digest, etc. for
providing squashed rootfs).
This commit solves this issue by enabling a handler to inject additional
information of layers to snapshotters during unpack.
Related discussion
You can test it on this remote snapshotter branch and the reproduction steps are here.
We need to discuss reasonable way to integrate handlers to containerd but I'm keeping it separated PR/issue.