Closed erikgb closed 1 month ago
/lgtm
@hawksight: adding LGTM is restricted to approvers and reviewers in OWNERS files.
Had a bit of a read through of the PR and of the linked documentation. This seems to make sense to me. The notion for using slog is that this is in the Go standard library now? I can't approve and can't comment explicitly on the code, but if it works 👍
Can I run this? just need to branch checkout and build the image?
Thanks @hawksight! You should be able to just checkout the branch and install it. My workstation environment is really borked for working with open source.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: hawksight, SgtCoDFish
The full list of commands accepted by this bot can be found here.
The pull request process is described here
In this PR I propose to introduce slog.Handler as a backend for logr (and klog) - as documented here.
I am doing a minimal change in this PR where my primary goal is to add support for a structured log format (ref. https://github.com/cert-manager/trust-manager/issues/282).
NOTE: This might break for some users, depending on if/how they parse trust-manager log output. I cannot imagine the slog text format (the new default) is the same as the deprecated klog format. We always try to avoid breaking changes, but I think a change is required here anyway - since the currently used klog format is deprecated.
Fixes https://github.com/cert-manager/trust-manager/issues/282