mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Merge pull request #122385 from SataQiu/fix-global-flag-20231219
kubeadm: hide unwanted global klog flags
This commit is contained in:
commit
c6f4ff6df8
@ -37,12 +37,14 @@ func Run() error {
|
||||
pflag.Set("logtostderr", "true")
|
||||
// We do not want these flags to show up in --help
|
||||
// These MarkHidden calls must be after the lines above
|
||||
pflag.CommandLine.MarkHidden("version")
|
||||
pflag.CommandLine.MarkHidden("log-flush-frequency")
|
||||
pflag.CommandLine.MarkHidden("alsologtostderr")
|
||||
pflag.CommandLine.MarkHidden("log-backtrace-at")
|
||||
pflag.CommandLine.MarkHidden("log-dir")
|
||||
pflag.CommandLine.MarkHidden("logtostderr")
|
||||
pflag.CommandLine.MarkHidden("log-file") //nolint:errcheck
|
||||
pflag.CommandLine.MarkHidden("log-file-max-size") //nolint:errcheck
|
||||
pflag.CommandLine.MarkHidden("one-output") //nolint:errcheck
|
||||
pflag.CommandLine.MarkHidden("skip-log-headers") //nolint:errcheck
|
||||
pflag.CommandLine.MarkHidden("stderrthreshold")
|
||||
pflag.CommandLine.MarkHidden("vmodule")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user