-
Notifications
You must be signed in to change notification settings - Fork 64
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
feat: append nomad task mounts #152
Conversation
@lgfa29 can you review this ? |
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.
Thanks for the PR @ttys3, and sorry for the delay and getting it reviewed.
I did a quick test using host volumes and it all seems to work 🙂
Would you mind adding some tests and a CHANGELOG
entry?
54a7beb
to
2036fc5
Compare
2036fc5
to
1bb78d8
Compare
@lgfa29 updated. PTAL tested, this does support https://www.nomadproject.io/docs/job-specification/volume_mount resolve #146 nomad client host volume config: client {
enabled = true
host_volume "waypoint-server" {
path = "/var/lib/waypoint"
read_only = false
}
} the job file: job "docs" {
datacenters = ["dc1"]
group "example" {
volume "my-vol" {
type = "host"
read_only = true
source = "waypoint-server"
}
task "example" {
driver = "podman"
config {
image = "alpine"
command = "sleep"
args = ["3600"]
}
volume_mount {
volume = "my-vol"
destination = "/demo/certs"
}
}
}
} |
Ah sorry, I mean like automated testing 😅 Something like this one, to verify that the configuration is properly set in the driver: You may need to update the |
Ok, I'll figure a way to write some test. |
Thanks! I linked to an example, but let me know if you need more help. |
Yeah, I wasn't paying enough attention when reviewing #169 😕 Did you happen to find a way to test this? |
something like this: https://github.com/hashicorp/waypoint/blob/566c65afb74fcfe64f3f0e50ef7eddbd03d9a3c8/internal/serverinstall/nomad.go#L914
will always fail when using the podman driver, because the driver does not handle this mounts now.
this PR fixup it