add some basic stubs for ro volume support

This commit is contained in:
Brad Rydzewski
2020-01-15 11:44:23 -08:00
parent 6ba65c68ac
commit 0bd2dff3dd
3 changed files with 11 additions and 4 deletions

View File

@@ -220,6 +220,7 @@ func toMount(source *Volume, target *VolumeMount) mount.Mount {
}
if isBindMount(source) || isNamedPipe(source) {
to.Source = source.HostPath.Path
to.ReadOnly = source.HostPath.ReadOnly
}
if isTempfs(source) {
to.TmpfsOptions = &mount.TmpfsOptions{