-
Notifications
You must be signed in to change notification settings - Fork 111
[Feat] Support reconvert image from nydus to oci (Update for PR #677) #679
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
base: main
Are you sure you want to change the base?
Conversation
3766d81 to
e249a49
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #679 +/- ##
==========================================
- Coverage 20.89% 20.59% -0.31%
==========================================
Files 122 123 +1
Lines 11068 11232 +164
==========================================
Hits 2313 2313
- Misses 8436 8600 +164
Partials 319 319
🚀 New features to boost your workflow:
|
BraveY
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 for the PR. LGTM!
Zephyrcf
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.
LGTM!
Signed-off-by: Yang Kaiyong <[email protected]>
Signed-off-by: Yang Kaiyong <[email protected]>
79ccf90 to
62c9f24
Compare
9e0c04b to
b958d78
Compare
|
|
||
| func MergeLayers(ctx context.Context, cs content.Store, descs []ocispec.Descriptor, opt MergeOption) (*ocispec.Descriptor, []ocispec.Descriptor, error) { | ||
| panic("not implemented") | ||
| } |
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.
Keep blank lines
pkg/converter/reconvert_unix.go
Outdated
| return nil, nil | ||
| } | ||
|
|
||
| if !images.IsManifestType(newDesc.MediaType) && !images.IsIndexType(newDesc.MediaType) { |
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 if statement seems unnecessary; we only need to handle the Manifest type, and all others can be returned directly.
pkg/converter/convert_unix.go
Outdated
| return newManifestDesc, nil | ||
| } | ||
|
|
||
| func ReconvertHookFunc() converter.ConvertHookFunc { |
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.
move this func to reconvert_unix.go
pkg/converter/convert_unix.go
Outdated
| } | ||
| } | ||
|
|
||
| func LayerReconvertFunc(opt UnpackOption) ConvertFunc { |
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.
move this func to reconvert_unix.go
1a2649c to
d21315b
Compare
Signed-off-by: jxr <[email protected]>
d21315b to
5e354ba
Compare
Overview
This PR is an update based on the original PR #677 (submitted by BraveY). It addresses some review comments from the original PR, retains the full commit history , and ensures the core function—reconverting nydus-format images to OCI format—works as expected.
Related Issues
PR#677
Related dragonflyoss/nydus#1682 (follows the same upstream issue as the original PR)
Change Details
Change Type