spiegel_podman/pkg/specgen/generate
Valentin Rothberg 4eff0c8cf2 pod: add exit policies
Add the notion of an "exit policy" to a pod.  This policy controls the
behaviour when the last container of pod exits.  Initially, there are
two policies:

 - "continue" : the pod continues running. This is the default policy
                when creating a pod.

 - "stop" : stop the pod when the last container exits. This is the
            default behaviour for `play kube`.

In order to implement the deferred stop of a pod, add a worker queue to
the libpod runtime.  The queue will pick up work items and in this case
helps resolve dead locks that would otherwise occur if we attempted to
stop a pod during container cleanup.

Note that the default restart policy of `play kube` is "Always".  Hence,
in order to really solve #13464, the YAML files must set a custom
restart policy; the tests use "OnFailure".

Fixes: #13464
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-05-02 13:29:59 +02:00
..
kube enable gocritic linter 2022-04-26 18:12:22 +02:00
config_linux.go Switch all calls to filepath.Walk to filepath.WalkDir 2022-03-27 07:18:25 -04:00
config_linux_cgo.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
config_linux_nocgo.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
config_linux_test.go Add filepath glob support to --security-opt unmask 2021-05-04 14:40:43 -04:00
container.go enable gocritic linter 2022-04-26 18:12:22 +02:00
container_create.go enable gocritic linter 2022-04-26 18:12:22 +02:00
namespaces.go enable gocritic linter 2022-04-26 18:12:22 +02:00
oci.go enable gocritic linter 2022-04-26 18:12:22 +02:00
pod_create.go pod: add exit policies 2022-05-02 13:29:59 +02:00
ports.go enable unparam linter 2022-04-25 13:23:20 +02:00
ports_bench_test.go fix a number of errcheck issues 2022-03-22 13:15:28 +01:00
ports_test.go use libnetwork from c/common 2022-01-12 17:07:30 +01:00
security.go Add support for ipc namespace modes "none, private, sharable" 2022-04-12 13:35:51 -04:00
storage.go Remove error stutter 2022-03-25 21:47:04 -04:00
validate.go enable gocritic linter 2022-04-26 18:12:22 +02:00