kubernetes/cmd
John Howard c6b0652b89
kubelet: silence flag output on errors (#110728)
* kubelet: silence flag output on errors

Currently, the `--help` text is output on kubelet errors. Currently on
my machine this is 280 lines. Typically kubelet is run by systemd or
similar, starting it a loop. This means when an issue is encountered, we
are spammed by 100s of logs per second, masking the real error.

With this PR, the list of all flags is silenced. Users can still access
them by `kubelet --help` as normal. This same `SilenceUsage` is already
set in the api-server command.

* Update cmd/kubelet/app/server.go

Co-authored-by: Paco Xu <paco.xu@daocloud.io>

Co-authored-by: Paco Xu <paco.xu@daocloud.io>
2022-06-27 11:34:59 -07:00
..
clicheck Update sig-cli OWNERS 2022-02-14 10:55:35 -07:00
cloud-controller-manager Merge pull request #107293 from dims/jan-1-owners-cleanup 2022-01-13 10:30:30 -08:00
dependencycheck replace deprecated io/ioutil with os and io for cmd 2022-02-01 13:59:41 +08:00
dependencyverifier replace deprecated io/ioutil with os and io for cmd 2022-02-01 13:59:41 +08:00
gendocs Add cli-maintainers as approvers to cmd/(gendocs|genman|genyaml) 2022-03-28 14:00:35 +02:00
genkubedocs replace deprecated io/ioutil with os and io for cmd 2022-02-01 13:59:41 +08:00
genman Add cli-maintainers as approvers to cmd/(gendocs|genman|genyaml) 2022-03-28 14:00:35 +02:00
genswaggertypedocs hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
genutils hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
genyaml Add cli-maintainers as approvers to cmd/(gendocs|genman|genyaml) 2022-03-28 14:00:35 +02:00
importverifier replace deprecated io/ioutil with os and io for cmd 2022-02-01 13:59:41 +08:00
kube-apiserver logs: replace config methods with functions 2022-06-17 20:22:13 +02:00
kube-controller-manager fix the running of the kube-controller-manager 2022-06-18 09:24:04 +08:00
kube-proxy Enable local traffic detection using the interface options 2022-03-25 20:06:12 +01:00
kube-scheduler logs: replace config methods with functions 2022-06-17 20:22:13 +02:00
kubeadm Merge pull request #110656 from pacoxu/kubeadm-dup-unix 2022-06-24 00:21:21 -07:00
kubectl Update sig-cli OWNERS 2022-02-14 10:55:35 -07:00
kubectl-convert Update sig-cli OWNERS 2022-02-14 10:55:35 -07:00
kubelet kubelet: silence flag output on errors (#110728) 2022-06-27 11:34:59 -07:00
kubemark Add option to bootstrap kubeconfig for hollow-node 2022-02-01 11:56:02 +00:00
linkcheck replace deprecated io/ioutil with os and io for cmd 2022-02-01 13:59:41 +08:00
preferredimports replace deprecated io/ioutil with os and io for cmd 2022-02-01 13:59:41 +08:00
prune-junit-xml Correctly attribute some datastructures from gotestsum repository 2022-04-01 14:49:15 -04:00
yamlfmt replace deprecated io/ioutil with os and io for cmd 2022-02-01 13:59:41 +08:00
OWNERS Update dims as approver for some top level dirs 2021-11-12 08:50:24 -05:00