moby/api/server
Sebastiaan van Stijn 2970b320aa
api: remove code for adjusting CPU shares (api < v1.19)
API versions before 1.19 allowed CpuShares that were greater than the maximum
or less than the minimum supported by the kernel, and relied on the kernel to
do the right thing.

Commit ed39fbeb2a introduced code to adjust the
CPU shares to be within the accepted range when using API version 1.18 or
lower.

API v1.23 and older are deprecated, so we can remove support for this
functionality.

Currently, there's no validation for CPU shares to be within an acceptable
range; a TODO was added to add validation for this option, and to use the
`linuxMinCPUShares` and `linuxMaxCPUShares` consts for this.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-02-06 18:44:33 +01:00
..
backend/build migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00
httpstatus migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
httputils api/types: move ContainerLogsOptions to api/types/container 2023-10-12 11:30:12 +02:00
middleware migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
router api: remove code for adjusting CPU shares (api < v1.19) 2024-02-06 18:44:33 +01:00
errorhandler.go errdefs: move GetHTTPErrorStatusCode to api/server/httpstatus 2022-03-21 12:22:39 +01:00
middleware.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
server.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
server_test.go daemon: raise default minimum API version to v1.24 2023-12-05 23:11:02 +01:00