spiegel_podman/pkg/specgen/generate
Valentin Rothberg fb536046a3 health check: add on-failure actions
For systems that have extreme robustness requirements (edge devices,
particularly those in difficult to access environments), it is important
that applications continue running in all circumstances. When the
application fails, Podman must restart it automatically to provide this
robustness. Otherwise, these devices may require customer IT to
physically gain access to restart, which can be prohibitively difficult.

Add a new `--on-failure` flag that supports four actions:

- **none**: Take no action.

- **kill**: Kill the container.

- **restart**: Restart the container.  Do not combine the `restart`
               action with the `--restart` flag.  When running inside of
               a systemd unit, consider using the `kill` or `stop`
               action instead to make use of systemd's restart policy.

- **stop**: Stop the container.

To remain backwards compatible, **none** is the default action.

Backport of commit aad29e759c

BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2097708
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-09-27 10:40:36 +02:00
..
kube Update c/common to an unreleased version 2022-08-02 16:52:56 +02:00
config_linux.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
config_linux_cgo.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02: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 specgen: use sandbox id instead of name for annotation 2022-08-10 16:46:05 -04:00
container_create.go health check: add on-failure actions 2022-09-27 10:40:36 +02:00
namespaces.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
oci.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
pause_image.go [BZ #2083997] pod: build pause image in custom user NS 2022-05-13 15:41:28 +02:00
pod_create.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
ports.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +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 pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
storage.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
validate.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00