kubernetes/cmd/kubelet/app
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
..
options kubelet: Update deprecation messages from 1.24 to 1.25 2022-06-18 19:45:50 +03:00
auth.go API Server Changes 2022-03-07 09:37:01 -05:00
init_others.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
init_windows_test.go [kubelet] Allow priority to be set for kubelet process on Windows 2020-11-03 01:18:59 +05:30
init_windows.go Run kubelet in a job object in windows 2022-03-15 12:17:52 -07:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
plugins_providerless.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
plugins_providers.go Add support for Portworx to csi-translation lib 2021-11-16 13:26:09 -08:00
plugins.go Add support for Portworx to csi-translation lib 2021-11-16 13:26:09 -08:00
server_bootstrap_test.go replace deprecated io/ioutil with os and io for cmd 2022-02-01 13:59:41 +08:00
server_linux.go Log StructuredLog: spelling formatting 2022-04-26 17:04:06 +08:00
server_others.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
server_test.go memory manager: provide new flag var to parse reserved-memory parameter 2021-02-09 01:10:01 +02:00
server_unsupported.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
server_windows.go Fixing logic for kubelet permissions check on windows 2022-03-24 14:57:08 -07:00
server.go kubelet: silence flag output on errors (#110728) 2022-06-27 11:34:59 -07:00