diff options
author | Andy Librian <andylibrian@gmail.com> | 2020-11-07 12:44:30 +0700 |
---|---|---|
committer | Andy Librian <andylibrian@gmail.com> | 2020-11-08 08:59:18 +0700 |
commit | f3355d9697119a1fd44abea1981d5ab6337ab67a (patch) | |
tree | e26da379377ab005f65e656f5f78856d5f2efd7a /pkg/api/handlers | |
parent | e2b82e6245ed9459a37dc004a2b1d593d2835cb7 (diff) | |
download | podman-f3355d9697119a1fd44abea1981d5ab6337ab67a.tar.gz podman-f3355d9697119a1fd44abea1981d5ab6337ab67a.tar.bz2 podman-f3355d9697119a1fd44abea1981d5ab6337ab67a.zip |
Add --log-driver to play kube
addresses #6604
Signed-off-by: Andy Librian <andylibrian@gmail.com>
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r-- | pkg/api/handlers/libpod/play.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pkg/api/handlers/libpod/play.go b/pkg/api/handlers/libpod/play.go index b81bc9d6b..0c7a6e19d 100644 --- a/pkg/api/handlers/libpod/play.go +++ b/pkg/api/handlers/libpod/play.go @@ -22,6 +22,7 @@ func PlayKube(w http.ResponseWriter, r *http.Request) { query := struct { Network string `schema:"reference"` TLSVerify bool `schema:"tlsVerify"` + LogDriver string `schema:"logDriver"` }{ TLSVerify: true, } @@ -62,11 +63,12 @@ func PlayKube(w http.ResponseWriter, r *http.Request) { containerEngine := abi.ContainerEngine{Libpod: runtime} options := entities.PlayKubeOptions{ - Authfile: authfile, - Username: username, - Password: password, - Network: query.Network, - Quiet: true, + Authfile: authfile, + Username: username, + Password: password, + Network: query.Network, + Quiet: true, + LogDriver: query.LogDriver, } if _, found := r.URL.Query()["tlsVerify"]; found { options.SkipTLSVerify = types.NewOptionalBool(!query.TLSVerify) |