podman/pkg/api/handlers
Charlie Doern 050f3291b9 implement podman update
podman update allows users to change the cgroup configuration of an existing container using the already defined resource limits flags
from podman create/run. The supported flags in crun are:

this command is also now supported in the libpod api via the /libpod/containers/<CID>/update endpoint where
the resource limits are passed inthe request body and follow the OCI resource spec format

–memory
–cpus
–cpuset-cpus
–cpuset-mems
–memory-swap
–memory-reservation
–cpu-shares
–cpu-quota
–cpu-period
–blkio-weight
–cpu-rt-period
–cpu-rt-runtime
-device-read-bps
-device-write-bps
-device-read-iops
-device-write-iops
-memory-swappiness
-blkio-weight-device

resolves #15067

Signed-off-by: Charlie Doern <cdoern@redhat.com>
2022-09-01 13:02:01 -04:00
..
compat Merge remote-tracking branch 'upstream/main' into api_compat_containers 2022-08-29 15:48:02 -04:00
libpod implement podman update 2022-09-01 13:02:01 -04:00
swagger implement podman update 2022-09-01 13:02:01 -04:00
types bump go module to version 4 2022-01-18 12:47:07 +01:00
utils Switch to `github.com/blang/semver/v4` 2022-07-14 13:53:13 +02:00
decoder.go pkg/api: do not register decoder in endpoint handler 2022-04-29 14:06:54 +02:00
types.go implement podman update 2022-09-01 13:02:01 -04:00