mirror of
https://github.com/containers/podman.git
synced 2025-09-19 12:56:57 +08:00
Add emptyDir volume support to kube play
When a kube yaml has a volume set as empty dir, podman will create an anonymous volume with the empty dir name and attach it to the containers running in the pod. When the pod is removed, the empy dir volume created is also removed. Add tests and docs for this as well. Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
This commit is contained in:
@ -237,6 +237,9 @@ type ContainerNamedVolume struct {
|
||||
Dest string `json:"dest"`
|
||||
// Options are fstab style mount options
|
||||
Options []string `json:"options,omitempty"`
|
||||
// IsAnonymous sets the named volume as anonymous even if it has a name
|
||||
// This is used for emptyDir volumes from a kube yaml
|
||||
IsAnonymous bool `json:"setAnonymous,omitempty"`
|
||||
}
|
||||
|
||||
// ContainerOverlayVolume is a overlay volume that will be mounted into the
|
||||
|
Reference in New Issue
Block a user