mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Make LocalVolume read only
This commit is contained in:
@@ -114,7 +114,7 @@ func (c *ContainerFilter) getArgs() []string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if c.LocalVolume != "" {
|
if c.LocalVolume != "" {
|
||||||
args = append(args, "--mount", fmt.Sprintf("'type=volume,src=%s,dst=/local/'", c.LocalVolume))
|
args = append(args, "--mount", fmt.Sprintf("'type=volume,src=%s,dst=/local/:ro'", c.LocalVolume))
|
||||||
}
|
}
|
||||||
|
|
||||||
// export the local environment vars to the container
|
// export the local environment vars to the container
|
||||||
|
|||||||
Reference in New Issue
Block a user