summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/libpod
diff options
context:
space:
mode:
authorNiall Crowe <nicrowe@redhat.com>2022-04-29 11:42:20 +0100
committerMatthew Heon <matthew.heon@pm.me>2022-05-05 15:43:31 -0400
commit6d1d6cc0b20eeb96169d7ec5d10a152f765773e9 (patch)
tree5fcaf7d08dd770e5a7c4a0e285771152531bac72 /pkg/api/handlers/libpod
parent83ef2c721ad438256b136b3491e504a6e70b64c9 (diff)
downloadpodman-6d1d6cc0b20eeb96169d7ec5d10a152f765773e9.tar.gz
podman-6d1d6cc0b20eeb96169d7ec5d10a152f765773e9.tar.bz2
podman-6d1d6cc0b20eeb96169d7ec5d10a152f765773e9.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 'pkg/api/handlers/libpod')
-rw-r--r--pkg/api/handlers/libpod/play.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/api/handlers/libpod/play.go b/pkg/api/handlers/libpod/play.go
index ca9ada761..b71afc28c 100644
--- a/pkg/api/handlers/libpod/play.go
+++ b/pkg/api/handlers/libpod/play.go
@@ -70,6 +70,16 @@ func PlayKube(w http.ResponseWriter, r *http.Request) {
password = authConf.Password
}
+ logDriver := query.LogDriver
+ if logDriver == "" {
+ config, err := runtime.GetConfig()
+ if err != nil {
+ utils.Error(w, http.StatusInternalServerError, err)
+ return
+ }
+ query.LogDriver = config.Containers.LogDriver
+ }
+
containerEngine := abi.ContainerEngine{Libpod: runtime}
options := entities.PlayKubeOptions{
Annotations: query.Annotations,