8000
Skip to content

Add logr logger to contexts to support contextual logging #13965

@brandond

Description

@brandond

In RKE2, some event recorder log messages are not printed to the console due to lack of logging context. Here in K3s Kubernetes components (kubelet, most prominently) set up a default global logger, but that doesn't happen RKE2 so the log messages from the event recorder were being discarded.

We should consistently add a logr logger to controller contexts so that components that use klog contextual logging output correctly, instead of discarding logs.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

To Test

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0