vendor: github.com/opencontainers/runtime-spec v1.3.0

This includes a breaking change in pids.Limit changing to a pointer.

full diff: https://github.com/opencontainers/runtime-spec/compare/v1.2.1...v1.3.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-11-26 18:38:23 +01:00
parent 587d96c934
commit 4b4223a8d4
7 changed files with 191 additions and 16 deletions

View File

@@ -118,9 +118,10 @@ func getPidsLimit(config containertypes.Resources) *specs.LinuxPids {
// docker API allows 0 and negative values to unset this to be consistent
// with default values. When updating values, runc requires -1 to unset
// the previous limit.
return &specs.LinuxPids{Limit: -1}
val := int64(-1)
return &specs.LinuxPids{Limit: &val}
}
return &specs.LinuxPids{Limit: *config.PidsLimit}
return &specs.LinuxPids{Limit: config.PidsLimit}
}
func getCPUResources(config containertypes.Resources) (*specs.LinuxCPU, error) {