podman/pkg/specgen/generate
Matthew Heon c51c593ff6 Re-add resource limit warnings to Specgen
These were part of Podman v1.9, but were lost in the transition
to using Specgen to create containers. Most resource limits are
checked via the sysinfo package to ensure they are safe to use
(the cgroup is mounted, kernel support is present, etc) and
removed if not safe. Further, bounds checks are performed to
ensure that values are valid.

Ensure these warnings are printed client-side when they occur.
This part is a little bit gross, as it happens in pkg/infra and
not cmd/podman, which is largely down to how we implemented
`podman run` - all the work is done in pkg/infra and it returns
only once the container has exited, and we need warnings to print
*before* the container runs. The solution here, while inelegant,
avoid the need to extensively refactor our handling of run.

Should fix blkio-limit warnings that were identified by the FCOS
test suite.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-06-16 17:32:01 -04:00
..
config_linux.go specgen: fix segfault 2020-05-27 14:52:17 -04:00
config_linux_cgo.go podman: add support for --rootfs 2020-04-24 12:56:20 +02:00
config_linux_nocgo.go Attempt to turn on build_without_cgo tests 2020-05-22 12:56:19 -04:00
container.go Re-add resource limit warnings to Specgen 2020-06-16 17:32:01 -04:00
container_create.go Re-add resource limit warnings to Specgen 2020-06-16 17:32:01 -04:00
namespaces.go Fixup issues found by golint 2020-06-10 05:49:41 -04:00
oci.go Ensure that containers in pods properly set hostname 2020-06-04 16:32:10 -04:00
pod_create.go pod create: add `--infra-conmon-pidfile` 2020-06-11 11:01:13 +02:00
ports.go Rework port parsing to support --expose and -P 2020-05-04 20:57:27 -04:00
security.go Properly handle default capabilities listed in containers.conf 2020-05-01 15:00:26 -04:00
storage.go Add support for volumes-from, image volumes, init 2020-04-27 13:13:21 -04:00
validate.go Re-add resource limit warnings to Specgen 2020-06-16 17:32:01 -04:00