spiegel_podman/pkg/specgen
Urvashi Mohnani edbeee5238 Add --restart flag to pod create
Add --restart flag to pod create to allow users to set the
restart policy for the pod, which applies to all the containers
in the pod. This reuses the restart policy already there for
containers and has the same restart policy options.
Add "never" to the restart policy options to match k8s syntax.
It is a synonym for "no" and does the exact same thing where the
containers are not restarted once exited.
Only the containers that have exited will be restarted based on the
restart policy, running containers will not be restarted when an exited
container is restarted in the same pod (same as is done in k8s).

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
2023-05-02 10:29:58 -04:00
..
generate Add --restart flag to pod create 2023-05-02 10:29:58 -04:00
config_unsupported.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
container_validate.go kube play: sd-notify integration 2022-08-10 21:12:39 +02:00
namespaces.go libpod: remove CNI word were no longer applicable 2022-12-16 14:20:14 +01:00
namespaces_test.go libpod: Add pasta networking mode 2022-11-08 00:16:35 +01:00
pod_validate.go libpod: Add pasta networking mode 2022-11-08 00:16:35 +01:00
podspecgen.go Add --restart flag to pod create 2023-05-02 10:29:58 -04:00
resources_freebsd.go specgen/generate: Factor out setting resource limits from CompleteSpec 2022-09-08 08:24:18 +01:00
resources_linux.go specgen/generate: Factor out setting resource limits from CompleteSpec 2022-09-08 08:24:18 +01:00
specgen.go Support running nested SELinux container separation 2023-03-13 14:21:12 -04:00
specgen_test.go libpod: support idmap for --rootfs 2023-02-02 22:35:00 +01:00
utils.go implement podman update 2022-09-01 13:02:01 -04:00
utils_linux.go implement podman update 2022-09-01 13:02:01 -04:00
volumes.go add support for subpath in play kube for named volumes 2022-12-12 09:54:00 -05:00
winpath.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
winpath_linux.go Implements Windows volume/mount support 2022-04-25 13:52:27 -05:00
winpath_unsupported.go Implements Windows volume/mount support 2022-04-25 13:52:27 -05:00
winpath_windows.go Implements Windows volume/mount support 2022-04-25 13:52:27 -05:00