-
Notifications
You must be signed in to change notification settings - Fork 731
commit: Add support for converting writable layers to eStargz blobs #4352
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
Reorganize `ImageConvertOptions` by extracting format-specific options into dedicated structs (EstargzOptions, ZstdOptions, ZstdChunkedOptions, NydusOptions, OverlaybdOptions) and embedding them for better code organization and maintainability. Signed-off-by: ChengyuZhu6 <hudson@cyzhu.com>
|
Just rebased to main. No code change. |
| cmd.Flags().Bool("estargz", false, "Convert the committed layer to eStargz for lazy pulling") | ||
| cmd.Flags().Int("estargz-compression-level", 9, "eStargz compression level (1-9)") | ||
| cmd.Flags().Int("estargz-chunk-size", 0, "eStargz chunk size") | ||
| cmd.Flags().Int("estargz-min-chunk-size", 0, "The minimal number of bytes of data must be written in one gzip stream") |
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.
Ideally this should cover all the convert flags, but I guess it can be fixed later
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.
https://github.com/containerd/nerdctl/blob/main/docs/command-reference.md should be updated too
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.
https://github.com/containerd/nerdctl/blob/main/docs/command-reference.md should be updated too
done
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.
Ideally this should cover all the
convertflags, but I guess it can be fixed later
@AkihiroSuda Only these fields are retained because EstargzExternalToc and EstargzKeepDiffID are specifically used for the estargz-externaltoc feature. However, since externaltoc cannot be detected or updated during the commit phase—even if the writable layers are correctly converted to stargz blobs—I have not included these two fields.
60d047a to
932aca1
Compare
|
Example: |
|
cc @ktock |
ktock
left a comment
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.
…ommit support estargz conversion with writable layer in container commit Fixes: containerd#4351 Signed-off-by: ChengyuZhu6 <hudson@cyzhu.com>
ktock
left a comment
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.
Thanks
|
@AkihiroSuda Could this PR be added to the v2.1.3 planning? |
AkihiroSuda
left a comment
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.
Thanks
Fixes: #4351