mirror of
https://github.com/containerd/containerd.git
synced 2026-11-06 05:17:02 +00:00
A shim declared the mount types it performs itself through a comma separated string in the generic annotations map of its RuntimeInfo, discovered by invoking the shim binary a second time with -info. The values had to reproduce by hand the "<transform>/*" sentinel the mount manager constructs internally, there was nowhere to put anything but a name, and it was keyed by runtime name rather than shim instance, so it could not reflect anything about the environment a particular shim is running in. Remove it along with loadShimInfo, shimInfo and the shimInfos cache, and the runc.v2/runhcs.v1 shortcut that only existed to avoid paying for it on the default runtimes. This is a breaking change targeted at 2.4; known usage is limited to Nerdbox, which can adopt the shim capability protocol added in the following commits after this merges. getRuntimeInfo itself stays: it is also used by PluginInfo and validateRuntimeFeatures. Signed-off-by: Derek McGowan <derek@mcg.dev>