spiegel_podman/pkg/domain/entities
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
..
reports podman image scp remote support & podman image scp tagging 2022-06-28 08:54:19 -04:00
types Fix build with GO111MODULE=off 2021-04-15 14:24:39 -04:00
auto-update.go auto-update: simple rollback 2021-08-05 15:20:38 +02:00
container_ps.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
containers.go Podman stop --filter flag 2022-07-26 13:25:36 -04:00
engine.go Standardize on capatalized Cgroups 2022-01-14 12:30:20 -05:00
engine_container.go add podman volume reload to sync volume plugins 2022-06-23 18:36:30 +02:00
engine_image.go podman image scp remote support & podman image scp tagging 2022-06-28 08:54:19 -04:00
engine_system.go Adds tunnel routes for system reset. 2020-05-11 17:03:32 -04:00
events.go Show Health Status events 2022-06-27 10:44:53 -04:00
filters.go Swagger refactor/cleanup 2022-05-19 15:24:18 -07:00
generate.go Handlers for generate systemd with custom dependencies 2022-01-19 21:46:16 +05:00
healthcheck.go podmanv2 enable healthcheck run 2020-03-29 18:48:29 -05:00
images.go Add support for creating sigstore signatures, and providing passphrases 2022-08-02 16:52:56 +02:00
machine.go pkg/machine/e2e: do not import from cmd/podman 2022-07-26 14:24:43 -04:00
manifest.go bindings: Add support for Delete in pkg/bingings/manifest 2022-06-29 12:41:57 +05:30
network.go Refactored networkPrune function 2022-07-08 08:33:20 +09:00
play.go play kube: service container 2022-05-12 10:51:13 +02:00
pods.go health check: add on-failure actions 2022-09-27 10:40:36 +02:00
secrets.go bump go module to version 4 2022-01-18 12:47:07 +01:00
set.go Fix Id->ID where possible for lint 2020-06-10 05:49:41 -04:00
system.go Refactored networkPrune function 2022-07-08 08:33:20 +09:00
types.go golangci-lint: enable nolintlint 2022-06-14 16:29:42 +02:00
volumes.go add podman volume reload to sync volume plugins 2022-06-23 18:36:30 +02:00