From 4d0270d138bdea274c1709012319a19a4573e504 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Mon, 25 Sep 2017 15:37:10 -0700 Subject: [PATCH] crio: Add flag for --log-size-max Signed-off-by: Mrunal Patel --- cmd/crio/main.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/crio/main.go b/cmd/crio/main.go index 754ab327..de67ca51 100644 --- a/cmd/crio/main.go +++ b/cmd/crio/main.go @@ -125,6 +125,9 @@ func mergeConfig(config *server.Config, ctx *cli.Context) error { if ctx.GlobalIsSet("pids-limit") { config.PidsLimit = ctx.GlobalInt64("pids-limit") } + if ctx.GlobalIsSet("log-size-max") { + config.LogSizeMax = ctx.GlobalInt64("log-size-max") + } if ctx.GlobalIsSet("cni-config-dir") { config.NetworkDir = ctx.GlobalString("cni-config-dir") } @@ -289,6 +292,11 @@ func main() { Value: libkpod.DefaultPidsLimit, Usage: "maximum number of processes allowed in a container", }, + cli.Int64Flag{ + Name: "log-size-max", + Value: libkpod.DefaultLogSizeMax, + Usage: "maximum log size in bytes for a container", + }, cli.StringFlag{ Name: "cni-config-dir", Usage: "CNI configuration files directory",