mirror of
https://github.com/containers/podman.git
synced 2025-11-30 18:18:18 +08:00
AdditionalSupport for SubPath volume mounts
Add support for inspecting Mounts which include SubPaths. Handle SubPaths for kubernetes image volumes. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@@ -575,7 +575,7 @@ func ToSpecGen(ctx context.Context, opts *CtrSpecGenOptions) (*specgen.SpecGener
|
||||
Destination: volume.MountPath,
|
||||
ReadWrite: false,
|
||||
Source: volumeSource.Source,
|
||||
SubPath: "",
|
||||
SubPath: volume.SubPath,
|
||||
}
|
||||
s.ImageVolumes = append(s.ImageVolumes, &imageVolume)
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user