Skip to content

Commit 8d01076

Browse files
authored
Merge pull request #1241 from enxebre/log-key
🌱 Use lowercase space separated keys
2 parents a156834 + c6a2a71 commit 8d01076

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

alias.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ var (
134134
// LoggerFrom returns a logger with predefined values from a context.Context.
135135
// The logger, when used with controllers, can be expected to contain basic information about the object
136136
// that's being reconciled like:
137-
// - `reconcilerGroup` and `reconcilerKind` coming from the For(...) object passed in when building a controller.
137+
// - `reconciler group` and `reconciler kind` coming from the For(...) object passed in when building a controller.
138138
// - `name` and `namespace` injected from the reconciliation request.
139139
//
140140
// This is meant to be used with the context supplied in a struct that satisfies the Reconciler interface.

pkg/builder/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func (blder *Builder) doController(r reconcile.Reconciler) error {
303303
if ctrlOptions.Log == nil {
304304
ctrlOptions.Log = blder.mgr.GetLogger()
305305
}
306-
ctrlOptions.Log = ctrlOptions.Log.WithValues("reconcilerGroup", gvk.Group, "reconcilerKind", gvk.Kind)
306+
ctrlOptions.Log = ctrlOptions.Log.WithValues("reconciler group", gvk.Group, "reconciler kind", gvk.Kind)
307307

308308
// Build the controller and return.
309309
blder.ctrl, err = newController(blder.getControllerName(gvk), blder.mgr, ctrlOptions)

0 commit comments

Comments
 (0)