Files
visor/pkg/shim/utils
Ayush RanjanandgVisor bot 458876fe75 Add self-backed overlay for disk-backed EmptyDir volumes.
This change adds a new mount annotation:
dev.gvisor.spec.mount.{volumeName}.lifecycle: shared | pod | container

For now runsc shim will be setting this annotation for all EmptyDir volumes.
Runsc looks at this annotation can adds a self-backed overlay on top of
EmptyDir volumes that have type=bind and share=container.

runsc gives precedence to mount annotations over --overlay2 configuration.
Added a container test for this feature.

This change also updates MountHint.fileAccessType() to be more generic using
all the available information about a mount.

PiperOrigin-RevId: 530746837
2023-05-09 16:43:39 -07:00
..