-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
support nydus as a accessory #18953
support nydus as a accessory #18953
Conversation
Recognize nydus image(with subject) as a kind of accessory and built the releationship with subject manifest Signed-off-by: wang yan <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #18953 +/- ##
==========================================
- Coverage 67.42% 67.40% -0.02%
==========================================
Files 994 993 -1
Lines 108825 108768 -57
Branches 2747 2747
==========================================
- Hits 73376 73316 -60
- Misses 31511 31520 +9
+ Partials 3938 3932 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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
layers := manifest.Layers | ||
if len(layers) != 0 { | ||
desc := layers[len(layers)-1] | ||
if desc.Annotations == nil { |
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.
do we need tests cover this if
branch
_, hasAnno := desc.Annotations[layerAnnotationNydusBootstrap] | ||
return hasAnno | ||
} | ||
return false |
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.
and also test case to cover this return false
statement here.
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.
Except the test to cover more logic in isNydusImage
method, it looks good to me.
Recognize nydus image(with subject) as a kind of accessory and built the releationship with subject manifest Signed-off-by: wang yan <[email protected]>
Recognize nydus image(with subject) as a kind of accessory and built the releationship with subject manifest
Thank you for contributing to Harbor!
Comprehensive Summary of your change
Issue being fixed
Fixes #(issue)
Please indicate you've done the following: