-
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
fix: Add the missing option propagation_mode #15626
fix: Add the missing option propagation_mode #15626
Conversation
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.
Hi @shumin1027! I've tested this out with a host volume and the following jobspec:
jobspec
job "httpd" {
datacenters = ["dc1"]
group "web" {
volume "host_data" {
type = "host"
read_only = false
source = "shared_data"
}
task "http" {
driver = "docker"
config {
image = "busybox:1"
command = "httpd"
args = ["-v", "-f", "-p", "8001", "-h", "/var/www"]
}
volume_mount {
volume = "host_data"
destination = "/var/www"
read_only = false
propagation_mode = "bidirectional"
}
resources {
cpu = 128
memory = 128
}
}
}
}
I changed the mode to private
and host-to-task
and got the expected mappings for the resulting Docker container.
So that looks good. This PR needs a couple more things before we can merge it:
- Run
make cl
which will create a changelog file for this PR. - We need to add the
propagation_mode
field to thevolume_mount
docs, which you can edit in volume_mount.mdx
Thanks for the PR!
c7ffd0c
to
88a944b
Compare
@tgross Thanks for your guidance, I've updated the docs and the changelog |
8ec896b
to
176c6b7
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.
LGTM
wasn't this supposed to be backported into 1.4.x, 1.3.x and 1.2.x? Latest release of all those doesn't contain this fix |
Hi @twix14; the last release was a security release and therefore the only changes included were those specific to the required security patches. This changes will therefore go out in the next release train, which will coincide with the 1.5.0 GA. |
Fix:#15524
Add the missing option
propagation_mode