-
Notifications
You must be signed in to change notification settings - Fork 784
Hostpath mount validation #4419
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: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Praful Khanduri <holiodin@gmail.com>
75f0a14 to
84ff74e
Compare
Signed-off-by: Praful Khanduri <holiodin@gmail.com>
84ff74e to
c44939c
Compare
Signed-off-by: Praful Khanduri <holiodin@gmail.com>
57736fb to
6f59ab8
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.
Tests are failing on Windows
Also please squash the commits
https://lima-vm.io/docs/dev/git/#squashing-commits
| } | ||
| if logs != "" { | ||
| callToolRes.Meta = map[string]any{ | ||
| "io.lima-vm/logs": []string{logs}, |
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 should be defined as a constant
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.
| "io.lima-vm/logs": []string{logs}, | |
| const MetaWarnings = "io.lima-vm.mcp/warnings" |
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.
Also do not clear existing entries in Meta.
Such entries may not exist in the current code, but may appear in future.
Description:
added validation to ensure
hostPathis part of a configured mount. if the path is not mounted, an error is returned.Testing:
added unit tests for
isMounted