summaryrefslogtreecommitdiff
path: root/pkg/bindings
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-11-17 22:40:28 +0100
committerGitHub <noreply@github.com>2020-11-17 22:40:28 +0100
commit770b03a50cbffbf1ad1d40a8c9ea72860727acea (patch)
treea9f3704b068fc111ed51c9aeadd7b5392c11432e /pkg/bindings
parent0886fabbc233261008cc38ee07dea238bcf4de86 (diff)
parent7ab936eafad504fd6a0b7bfec3f6dafe322ad09d (diff)
downloadpodman-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')
-rw-r--r--pkg/bindings/play/play.go3
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)