426e610e43
Currently the metrics plugin uses a really hackish host mount with propagated mounts to get the metrics socket into a plugin after the plugin is alreay running. This approach ends up leaking mounts which requires setting the plugin manager root to private, which causes some other issues. With this change, plugin subsystems can register a set of modifiers to apply to the plugin's runtime spec before the plugin is ever started. This will help to generalize some of the customization work that needs to happen for various plugin subsystems (and future ones). Specifically it lets the metrics plugin subsystem append a mount to the runtime spec to mount the metrics socket in the plugin's mount namespace rather than the host's and prevetns any leaking due to this mount. Signed-off-by: Brian Goff <cpuguy83@gmail.com> |
||
---|---|---|
.. | ||
executor/containerd | ||
v2 | ||
backend_linux.go | ||
backend_linux_test.go | ||
backend_unsupported.go | ||
blobstore.go | ||
defs.go | ||
errors.go | ||
events.go | ||
manager.go | ||
manager_linux.go | ||
manager_linux_test.go | ||
manager_test.go | ||
manager_windows.go | ||
store.go | ||
store_test.go |