-
Notifications
You must be signed in to change notification settings - Fork 2k
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
dynamic host volumes: change env vars, fixup auto-delete #24943
Conversation
// GetHostVolumePluginVersions finds all the executable files on disk that | ||
// respond to a `fingerprint` call. The return map's keys are plugin IDs, | ||
// and the values are version strings. | ||
func GetHostVolumePluginVersions(log hclog.Logger, pluginDir, nodePool string) (map[string]string, error) { |
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.
nodepool isn't really needed in this context, because fingerprint
calls don't include it, but I pass it through here anyway to avoid potential confusion in the future if someone does want to add it to fingerprint
env.
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!
This trues up plugin behavior with the spec that we arrived at in the docs PR: #24924
delete
when saving client state fails after initialcreate
, not update or restore.DHV_HOST_PATH
env, where we included the volume ID withinalloc_mounts
, in favor of:DHV_VOLUMES_DIR
- create and delete - configurable - where plugins should place volumes, with whatever convention they like.DHV_CREATED_PATH
- delete - the"path"
response from create; plugins may use this verbatim, or derive the path the same way ascreate
DHV_NAMESPACE
andDHV_NODE_POOL
to create and deleteI confirmed that the
e2e
test still passes - it only usesmkdir
at the moment.I have not confirmed that the example plugin still works on MacOS.