-
Story
-
Resolution: Done
-
Normal
-
None
-
None
-
None
-
5
-
False
-
False
-
rhel-sst-container-tools
-
undefined
-
RUN 227, RUN 228, RUN 229, RUN 230, RUN 232, RUN 233, RUN 234, RUN 235, RUN 236, RUN 237, RUN 238
As a podman user, I want to be able to set restart policy for pods when creating pods with podman. Add a `–restart` flag to `podman pod create` with options `always`, `none`, and `on-failure`.
Test Criteria:
- Test that the restart policy of all the containers in a pod is set to what is specified in the pod create command. i.e `podman pod create --restart on-failure` should set the restart policy of all the containers in the pod to `on-failure`
- Test that the default restart policy for a pod and all containers in a pod is `none`
- When running `podman kube play` the default restart policy of the pod created from that should be `always` unless otherwise specified in the kube yaml
- When running `podman kube generate` the restartPolicy field in the kube yaml should be set to the pod's restart policy (it will be blank for the default restart policy case)
Link to design doc for more details: https://docs.google.com/document/d/1FTABe_jPMzWCxS1omIeESamnFbTPjVjM3Hd7cTgETO8/edit?usp=drive_link