diff options
author | Alban Bedel <albeu@free.fr> | 2020-11-16 21:46:42 +0100 |
---|---|---|
committer | Alban Bedel <albeu@free.fr> | 2020-11-17 20:00:58 +0100 |
commit | 7ab936eafad504fd6a0b7bfec3f6dafe322ad09d (patch) | |
tree | 5ccf2a4f68bd59f089d2e34f62e240a140b2b9a3 /pkg/api/server | |
parent | 12de330094fdcd2e2fd0d10d5e5ddd962193de8b (diff) | |
download | podman-7ab936eafad504fd6a0b7bfec3f6dafe322ad09d.tar.gz podman-7ab936eafad504fd6a0b7bfec3f6dafe322ad09d.tar.bz2 podman-7ab936eafad504fd6a0b7bfec3f6dafe322ad09d.zip |
Add an option to control if play kube should start the pod
Having play kube start the pod is not always appropriate, one might
for example like to have the pod running as a set of systemd services.
Add a `start` option to the command line and API to control if the pod
should be started or not; it defaults to true for backward
compatibility.
Signed-off-by: Alban Bedel <albeu@free.fr>
Diffstat (limited to 'pkg/api/server')
-rw-r--r-- | pkg/api/server/register_play.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/api/server/register_play.go b/pkg/api/server/register_play.go index e41f8311d..6aa349a3b 100644 --- a/pkg/api/server/register_play.go +++ b/pkg/api/server/register_play.go @@ -29,6 +29,11 @@ func (s *APIServer) registerPlayHandlers(r *mux.Router) error { // name: logDriver // type: string // description: Logging driver for the containers in the pod. + // - in: query + // name: start + // type: boolean + // default: true + // description: Start the pod after creating it. // - in: body // name: request // description: Kubernetes YAML file. |