mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
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