-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: redirect all controller-runtime logs to klog (#4357)
Unlike most other K8s libraries/projects, controller-runtime uses a logr abstract interface internally. Unfortunately, it doesn't _really_ make use of levels internally very much, so redirecting all its logs to the Tilt debug log adds a bunch of noise (see #4350). As an alternative approach, we can use `klogr` which is a logr impl using klog under the hood and redirect it to a higher verbosity klog instance. Given that apiserver internal logs use klog already, this gives a single, consistent way to get internal logging across these components. In the future, we might want to re-introduce a Tilt-specific facade for these and have more granular handling by each component to avoid noisy libraries from flooding the output, but this is a good interim step.
- Loading branch information
Showing
21 changed files
with
428 additions
and
1,120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.