Files
containerd/pkg
Sebastiaan van Stijn b0052d94a6 pkg/oci: prevent panic for some platform-specific options
Some of these options are designed to be a no-op when used on a Spec
that doesn't match the platform for the option. However, if the given
plaform was not present, they would panic.

This patch:

- Adds an early-return for options that are only applied on a
  specific platform.
- Update the GoDoc for these functions to describe they're a
  no-op on other platforms.
- Adds some rudimentary unit-tests to verify their behavior.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-05-15 00:44:45 +02:00
..
2024-08-26 23:35:24 -07:00
2025-04-23 18:03:29 -07:00
2024-12-23 23:14:49 -07:00
2024-01-25 22:18:45 -08:00
2024-01-17 09:52:12 -08:00
2024-10-26 14:18:53 +02:00
2024-01-25 22:18:45 -08:00
2024-10-03 00:12:50 +00:00
2024-12-23 23:14:49 -07:00
2024-05-02 11:03:00 -07:00