Remove default volume read_only
It was always setting to true
This commit is contained in:
parent
c2c3d1abc7
commit
d5cbe7174e
@ -55,7 +55,7 @@ job "[[.name]]" {
|
|||||||
[[ range $v := . | parseJSON -]]
|
[[ range $v := . | parseJSON -]]
|
||||||
volume "[[ $v.name ]]" {
|
volume "[[ $v.name ]]" {
|
||||||
type = "host"
|
type = "host"
|
||||||
read_only = [[ default true $v.read_only ]]
|
read_only = [[ $v.read_only ]]
|
||||||
source = "[[ $v.name ]]"
|
source = "[[ $v.name ]]"
|
||||||
}
|
}
|
||||||
[[ end ]]
|
[[ end ]]
|
||||||
@ -160,7 +160,7 @@ job "[[.name]]" {
|
|||||||
volume_mount {
|
volume_mount {
|
||||||
volume = "[[ $v.name ]]"
|
volume = "[[ $v.name ]]"
|
||||||
destination = "[[ $v.dest ]]"
|
destination = "[[ $v.dest ]]"
|
||||||
read_only = [[ default true $v.read_only ]]
|
read_only = [[ $v.read_only ]]
|
||||||
}
|
}
|
||||||
[[ end ]]
|
[[ end ]]
|
||||||
[[ end -]]
|
[[ end -]]
|
||||||
|
Loading…
Reference in New Issue
Block a user