From 80b28d7c2c2ee851dc91a20ae7f626d948ffaa20 Mon Sep 17 00:00:00 2001 From: Alexi Kessler Date: Thu, 22 Jul 2021 09:42:30 -0400 Subject: [PATCH] Update doc description for --audit-log-maxbackup Per https://pkg.go.dev/gopkg.in/natefinch/lumberjack.v1 a value of 0 will retain all logs. Not understanding this led to an outage for my team. Kubernetes-commit: 94977dce8d13ec1e8b4bd8b449f555af685c3ab6 --- pkg/server/options/audit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/options/audit.go b/pkg/server/options/audit.go index 6e062c987..a35163649 100644 --- a/pkg/server/options/audit.go +++ b/pkg/server/options/audit.go @@ -451,7 +451,7 @@ func (o *AuditLogOptions) AddFlags(fs *pflag.FlagSet) { fs.IntVar(&o.MaxAge, "audit-log-maxage", o.MaxAge, "The maximum number of days to retain old audit log files based on the timestamp encoded in their filename.") fs.IntVar(&o.MaxBackups, "audit-log-maxbackup", o.MaxBackups, - "The maximum number of old audit log files to retain.") + "The maximum number of old audit log files to retain. Setting a value of 0 will mean there's no restriction on the number of files.") fs.IntVar(&o.MaxSize, "audit-log-maxsize", o.MaxSize, "The maximum size in megabytes of the audit log file before it gets rotated.") fs.StringVar(&o.Format, "audit-log-format", o.Format,