diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-11-17 22:40:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 22:40:28 +0100 |
commit | 770b03a50cbffbf1ad1d40a8c9ea72860727acea (patch) | |
tree | a9f3704b068fc111ed51c9aeadd7b5392c11432e /pkg/bindings/play/play.go | |
parent | 0886fabbc233261008cc38ee07dea238bcf4de86 (diff) | |
parent | 7ab936eafad504fd6a0b7bfec3f6dafe322ad09d (diff) | |
download | podman-770b03a50cbffbf1ad1d40a8c9ea72860727acea.tar.gz podman-770b03a50cbffbf1ad1d40a8c9ea72860727acea.tar.bz2 podman-770b03a50cbffbf1ad1d40a8c9ea72860727acea.zip |
Merge pull request #8363 from AlbanBedel/play-kube-create-only
Add an option to control if play kube should start the pod
Diffstat (limited to 'pkg/bindings/play/play.go')
-rw-r--r-- | pkg/bindings/play/play.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/bindings/play/play.go b/pkg/bindings/play/play.go index b6e8048de..cfb40d74b 100644 --- a/pkg/bindings/play/play.go +++ b/pkg/bindings/play/play.go @@ -32,6 +32,9 @@ func Kube(ctx context.Context, path string, options entities.PlayKubeOptions) (* if options.SkipTLSVerify != types.OptionalBoolUndefined { params.Set("tlsVerify", strconv.FormatBool(options.SkipTLSVerify != types.OptionalBoolTrue)) } + if options.Start != types.OptionalBoolUndefined { + params.Set("start", strconv.FormatBool(options.Start == types.OptionalBoolTrue)) + } // TODO: have a global system context we can pass around (1st argument) header, err := auth.Header(nil, auth.XRegistryAuthHeader, options.Authfile, options.Username, options.Password) |