Commit Graph
17 Commits
Author SHA1 Message Date
Derek McGowan a72247425b api: add shim mount capabilities
A shim that performs some mount types or transformations itself, so that
containerd's mount manager does not perform them on its behalf, had no
way to say so other than a comma separated string in the generic
annotations map of its RuntimeInfo.

Add a containerd.types.MountCapabilities extension a shim can attach to
its BootstrapResult, naming the mount types and transforms it handles.
Detail lives in an extension rather than fields of BootstrapResult so
that containerd can ignore an extension whose type it does not
recognize, letting a shim advertise unconditionally.

Presence of the extension is enough: it is not gated behind a
Capability enum value, since with no other consumer of that field an
enum value here would only ever duplicate what the extension's
presence already says, while still permitting states with no single
correct interpretation, such as the enum value being set with no
extension attached, or the reverse.

This is additive: only a new field is added to BootstrapResult, and
buf breaking is clean.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2026-08-26 10:47:43 -07:00
Philip Laine a452c2e230 Include media type in content create event
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2026-07-23 15:52:24 +02:00
Kohei Tokunaga ea0ed51e21 shim: allow specifying runc's --parent-path during checkpointing
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2026-07-01 00:13:02 +00:00
Maksym Pavlenko ac01ae5c27 protos: include task API address to CreateTaskRequest
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-05-07 14:56:18 -07:00
Derek McGowan d806373feb Make shim socket directory use configured state
Send the socket directory from containerd to the shim. The shim still
decides where the socket goes but can use the environment variable
passed from containerd to ensure the socket is placed in the configured
directory with proper permission.

This is needed for some rootless cases which do not have permission to
the default state directory as currently set. The directory being
hardcoded by the shim means it is currently not possible to change the
location the shim will listen at.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2026-04-15 00:21:18 -07:00
Derek McGowan 2c102c6cbe Update bootstrap API log level definition
Avoid using logrus concepts in the API, use slog style log levels with
integer values and 0 meaning the default "info" level.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2026-04-10 15:23:34 -07:00
Maksym Pavlenko b52893b246 Merge pull request #13165 from dmcgowan/add-transfer-copy-types
Add transfer types for container filesystem copy
2026-04-09 05:11:12 +00:00
Maksym Pavlenko 9bf65dcf02 Use enums instead of strings for capabilities and log level
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-04-08 08:29:28 -05:00
Maksym Pavlenko 3fbdb132bf Fix module path
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-04-08 08:29:28 -05:00
Maksym Pavlenko d957b1bf53 Use log level instead of debug flag
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-04-08 08:29:28 -05:00
Maksym Pavlenko 31d0bbbad7 Include containerd version when launching shim
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-04-08 08:29:28 -05:00
Maksym Pavlenko f71c2e4211 Reformat and clean proto files
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-04-08 08:29:28 -05:00
Derek McGowan 121f3a21e4 Add transfer types for container filesystem copy
Add support for transfering data to and from a container filesystem.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2026-04-06 11:42:01 -07:00
Gao Xiang 146930e91d api: add os_features to api/types/platform.proto
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
2026-04-01 13:13:11 +08:00
Sebastiaan van Stijn 4b4eb67150 api: regenerate and re-vendor protos
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-02-18 10:58:03 +01:00
Maksym Pavlenko 8ccf18724f Update sandbox API to include spec field
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2026-02-17 14:23:39 -08:00
Derek McGowan 472e0a8e7a Generate next.txtpb to replace next.pb.txt
buf will generate the protobuf text file which can be used for viewing
all protobuf changes in one file and quickly diffing changes.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2026-01-23 17:17:47 -08:00