summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel/play.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-10-26 10:53:26 +0000
committerGitHub <noreply@github.com>2021-10-26 10:53:26 +0000
commit4d75df8be380cff4df082bd6fc2f05aa2c433723 (patch)
tree99ef73a78541017921848d11729384e019d2f1ff /pkg/domain/infra/tunnel/play.go
parentf82f93c9bdaca49765019966df43384d34469575 (diff)
parentacd8b4900058c364a660a4a01319a8d9cd097896 (diff)
downloadpodman-4d75df8be380cff4df082bd6fc2f05aa2c433723.tar.gz
podman-4d75df8be380cff4df082bd6fc2f05aa2c433723.tar.bz2
podman-4d75df8be380cff4df082bd6fc2f05aa2c433723.zip
Merge pull request #12086 from rhatdan/log
Add support to play kube for --log-opt
Diffstat (limited to 'pkg/domain/infra/tunnel/play.go')
-rw-r--r--pkg/domain/infra/tunnel/play.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/domain/infra/tunnel/play.go b/pkg/domain/infra/tunnel/play.go
index 0b1c3d2ca..75952ce2c 100644
--- a/pkg/domain/infra/tunnel/play.go
+++ b/pkg/domain/infra/tunnel/play.go
@@ -13,6 +13,9 @@ func (ic *ContainerEngine) PlayKube(ctx context.Context, path string, opts entit
options.WithCertDir(opts.CertDir).WithQuiet(opts.Quiet).WithSignaturePolicy(opts.SignaturePolicy).WithConfigMaps(opts.ConfigMaps)
options.WithLogDriver(opts.LogDriver).WithNetwork(opts.Network).WithSeccompProfileRoot(opts.SeccompProfileRoot)
options.WithStaticIPs(opts.StaticIPs).WithStaticMACs(opts.StaticMACs)
+ if len(opts.LogOptions) > 0 {
+ options.WithLogOptions(opts.LogOptions)
+ }
options.WithNoHosts(opts.NoHosts)
if s := opts.SkipTLSVerify; s != types.OptionalBoolUndefined {
options.WithSkipTLSVerify(s == types.OptionalBoolTrue)