Skip to content
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

HostVolumePlugin interface and two implementations #24497

Open
wants to merge 5 commits into
base: dynamic-host-volumes
Choose a base branch
from

Conversation

gulducat
Copy link
Member

This is functional end-to-end from CLI to Client, provided you place the example-host-volume plugin script in /opt/nomad/hostvolumeplugins/ on the client node, or use the "mkdir" internal plugin.

I have not tried this on MacOS or Windows, only my Linux laptop. Perhaps @pkazmierczak can test it on Mac for us? 🙂

There are many TODOs around, and no unit tests are present. Testing what's here is up next on my todo list, provided the overall shape of the interface here looks good to y'all.

The _test-plugin.sh script was convenient for me sprucing up the example plugin, and gave me two ideas for future:

  • a similar nomad CLI subcommand might be neat to include, to ease plugin development for users
  • the dir that will contain these plugins could skip files that start with _ (or . or something) for library files
    • this could encourage big complicated bash monsters, though, so maybe not

tgross and others added 5 commits November 18, 2024 12:34
* mkdir: HostVolumePluginMkdir: just creates a directory
* example-host-volume: HostVolumePluginExternal:
  mkfs and mount loopback
send json PARAMETERS env var instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants