summaryrefslogtreecommitdiff
path: root/cmd/podman/play
diff options
context:
space:
mode:
authorNiall Crowe <nicrowe@redhat.com>2022-04-29 11:42:20 +0100
committerNiall Crowe <nicrowe@redhat.com>2022-05-04 12:52:27 +0100
commitccd576504e7fb578add8f5390fa8ceb41dd1d9d4 (patch)
tree81afdba0ebf6835a2cfc34ea2221e3ee3404b5ff /cmd/podman/play
parent3d84661195aa8fbf3dab67375099cb991fd7fe81 (diff)
downloadpodman-ccd576504e7fb578add8f5390fa8ceb41dd1d9d4.tar.gz
podman-ccd576504e7fb578add8f5390fa8ceb41dd1d9d4.tar.bz2
podman-ccd576504e7fb578add8f5390fa8ceb41dd1d9d4.zip
play kube default log driver
The default log driver is not used when using play kube without --log-driver. The LogDriver function needs to be called in order to use the default log driver. fixes #13781 Signed-off-by: Niall Crowe <nicrowe@redhat.com>
Diffstat (limited to 'cmd/podman/play')
-rw-r--r--cmd/podman/play/kube.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/play/kube.go b/cmd/podman/play/kube.go
index 40d14a609..3be7396ce 100644
--- a/cmd/podman/play/kube.go
+++ b/cmd/podman/play/kube.go
@@ -87,7 +87,7 @@ func init() {
_ = kubeCmd.RegisterFlagCompletionFunc(staticIPFlagName, completion.AutocompleteNone)
logDriverFlagName := "log-driver"
- flags.StringVar(&kubeOptions.LogDriver, logDriverFlagName, "", "Logging driver for the container")
+ flags.StringVar(&kubeOptions.LogDriver, logDriverFlagName, common.LogDriver(), "Logging driver for the container")
_ = kubeCmd.RegisterFlagCompletionFunc(logDriverFlagName, common.AutocompleteLogDriver)
logOptFlagName := "log-opt"