Skip to content

Commit

Permalink
Merge pull request #5879 from maelvls/structured-logs-deprecate
Browse files Browse the repository at this point in the history
Deprecate klog flags and add a deprecation message
  • Loading branch information
jetstack-bot committed Aug 25, 2023
2 parents 1bc7182 + 1c85525 commit 9ebc08c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/logs/logs.go
Expand Up @@ -89,7 +89,9 @@ func AddFlags(opts *logsapi.LoggingConfiguration, fs *pflag.FlagSet) {
switch f.Name {
case "add_dir_header", "alsologtostderr", "log_backtrace_at", "log_dir", "log_file", "log_file_max_size",
"logtostderr", "one_output", "skip_headers", "skip_log_headers", "stderrthreshold":
fs.AddGoFlag(f)
pf := pflag.PFlagFromGoFlag(f)
pf.Deprecated = "this flag may be removed in the future"
fs.AddFlag(pf)
}
})

Expand Down

0 comments on commit 9ebc08c

Please sign in to comment.