runtime: add support for ephemeral mounts to occupy entire sandbox memory

On hotplug of memory as containers are started, remount all ephemeral mounts with size option set to the total sandbox memory

Fixes: #6417

Signed-off-by: Sidhartha Mani <sidhartha_mani@apple.com>
This commit is contained in:
Sidhartha Mani
2023-03-03 17:48:36 -08:00
parent 16e2c3cc55
commit a6c67a161e
8 changed files with 1116 additions and 507 deletions

View File

@@ -121,6 +121,11 @@ func (n *mockAgent) listRoutes(ctx context.Context) ([]*pbTypes.Route, error) {
return nil, nil
}
// updateEphemeralMounts is the Noop agent updateEphemeralMounts implementation. It does nothing.
func (n *mockAgent) updateEphemeralMounts(ctx context.Context, storages []*grpc.Storage) error {
return nil
}
// check is the Noop agent health checker. It does nothing.
func (n *mockAgent) check(ctx context.Context) error {
return nil