-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Add mount manager #12063
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
Add mount manager #12063
Conversation
|
Skipping CI for Draft Pull Request. |
1a46cb7 to
a3b875d
Compare
26cb8fd to
3b2dfd0
Compare
6657f4b to
4195276
Compare
1bc2cbb to
f71db6f
Compare
8c7b9c5 to
3e8da83
Compare
Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
Create separate package for snapshotter test in metadata package to prevent circular dependency. Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
Avoid keeping file descriptor open to directory which is getting removed. Update error handling and wrapping to provide more clarity around failures. Signed-off-by: Derek McGowan <[email protected]>
The autoclear may take a bit of time to clear out the file, check multiple times for the file to get removed before returning an error. Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
Allow task manager to fetch info on runtimes at startup. Use this info to configure whether the runtime allows formatted mounts. This info could also be used in the future to enforce policy such as requiring a pre-known set of runtimes or specific runtime properties. Signed-off-by: Derek McGowan <[email protected]>
Allow the mount manager to skip handling of custom types. Ensure that custom types are still working with formatted mounts. Signed-off-by: Derek McGowan <[email protected]>
68bdd86 to
17f22db
Compare
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.
Pull Request Overview
Copilot reviewed 48 out of 58 changed files in this pull request and generated 3 comments.
Comments suppressed due to low confidence (1)
core/mount/manager/manager.go:1
- The TODO comment 'IF has sync' is unclear and incomplete. It should be clarified to explain what condition should be checked or removed if no longer needed.
/*
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Let the runtime specify which custom mounts it will support Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Derek McGowan <[email protected]>
17f22db to
c7b3114
Compare
fuweid
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.
Overall, LGTM
The change is huge. We need more e2e test for this in the follow-up, especially detecting leaky resources.
|
|
||
| // metadata_test is used to test the metadata snapshotter implementations | ||
| // against the snapshotter test suite. | ||
| package metadata_test |
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.
since it's external package, maybe we can put this test in native plugin? it's not a blocker
Implementation of #11303
Depends on #12025mergedWIP Items:
Update implementation and testingcompleteMoving runtime implementation down to the task managercompletePassing runtime name tocompleteMore complete documentationcomplete