spiegel_podman/pkg/specgenutil
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
..
createparse.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_test.go Unit tests for pkg/specgenutil pkg/signal 2022-04-25 14:48:39 -05:00
specgen.go Add --restart flag to pod create 2023-05-02 10:29:58 -04:00
specgenutil_test.go The --ulimit option accepts the name with an RLIMIT_ prefix both upper and lower case 2023-04-06 18:20:28 +04:00
util.go Add SQLite job to CI 2023-03-15 14:44:47 -04:00
util_test.go Unit tests for pkg/specgenutil pkg/signal 2022-04-25 14:48:39 -05:00
volumes.go Add containers.conf read-only flag support 2022-12-22 11:57:28 -05:00
volumes_test.go Run codespell on code 2022-11-04 10:57:41 -04:00