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:
Daniel J Walsh
2024-11-05 16:03:34 -05:00
parent c0e24c6b60
commit 6346a11b09
4 changed files with 14 additions and 1 deletions

View File

@ -285,6 +285,9 @@ type InspectMount struct {
// Mount propagation for the mount. Can be empty if not specified, but
// is always printed - no omitempty.
Propagation string `json:"Propagation"`
// SubPath object from the volume. Specified as a path within
// the source volume to be mounted at the Destination.
SubPath string `json:"SubPath,omitempty"`
}
// InspectContainerState provides a detailed record of a container's current