-
Notifications
You must be signed in to change notification settings - Fork 110
nydus sn: fix issues with "not found" in CoCo cases. #636
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
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #636 +/- ##
==========================================
- Coverage 21.39% 21.36% -0.03%
==========================================
Files 122 122
Lines 13617 13632 +15
==========================================
Hits 2913 2913
- Misses 10383 10398 +15
Partials 321 321
🚀 New features to boost your workflow:
|
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.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
snapshot/mount_option.go:175
- [nitpick] Consider defining a constant for the fallback source value 'overlayfs' instead of using a hard-coded string, to improve maintainability and readability.
source = "overlayfs"
snapshot/mount_option.go
Outdated
// remains non-empty, a forced assignment is used here. This does not affect the passing of information. | ||
// it is solely to pass the check. | ||
if len(source) == 0 { | ||
source = "overlayfs" |
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.
How about dummy-image-reference
?
snapshot/mount_option.go
Outdated
@@ -27,6 +27,10 @@ import ( | |||
"github.com/pkg/errors" | |||
) | |||
|
|||
const ( | |||
KataVirtualVolumeDefaultSource = "overlayfs" |
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.
How about dummy-image-reference
?
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.
fixed
To make nydus-snapshotter work well in CoCo: (1) Just go pass when do AddRafsInstance failed. (2) When sn can't get label.CRIImageRef, just assign it with overlayfs. Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
Bump to version v0.15.2 to pick up fix to mount source in containerd/nydus-snapshotter#636 Signed-off-by: stevenhorsman <steven@uk.ibm.com>
Bump to version v0.15.2 to pick up fix to mount source in containerd/nydus-snapshotter#636 Signed-off-by: stevenhorsman <steven@uk.ibm.com>
To make nydus-snapshotter work well in CoCo:
(1) Just go pass when do AddRafsInstance failed.
(2) When sn can't get label.CRIImageRef, just assign it with overlayfs.
Signed-off-by: alex.lyn alex.lyn@antgroup.com