hide deprecated flags

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
Tim Ramlot 2023-12-20 10:25:35 +01:00
parent a10d81be5d
commit f60a61bde1
No known key found for this signature in database
GPG Key ID: 47428728E0C2878D

View File

@ -91,6 +91,7 @@ func AddFlags(opts *logsapi.LoggingConfiguration, fs *pflag.FlagSet) {
"logtostderr", "one_output", "skip_headers", "skip_log_headers", "stderrthreshold":
pf := pflag.PFlagFromGoFlag(f)
pf.Deprecated = "this flag may be removed in the future"
pf.Hidden = true
fs.AddFlag(pf)
}
})