cmd/k8s-operator: rename 'l' variables (#17700)

Single letter 'l' variables can eventually become confusing when
they're rendered in some fonts that make them similar to 1 or I.

Updates #cleanup

Signed-off-by: Fernando Serboncini <fserb@tailscale.com>
This commit is contained in:
Fernando Serboncini
2025-10-29 12:41:44 -04:00
committed by GitHub
parent 06b092388e
commit da90e3d8f2
6 changed files with 30 additions and 30 deletions

View File

@@ -54,7 +54,7 @@ var gaugeRecorderResources = clientmetric.NewGauge(kubetypes.MetricRecorderCount
// Recorder CRs.
type RecorderReconciler struct {
client.Client
l *zap.SugaredLogger
log *zap.SugaredLogger
recorder record.EventRecorder
clock tstime.Clock
tsNamespace string
@@ -66,7 +66,7 @@ type RecorderReconciler struct {
}
func (r *RecorderReconciler) logger(name string) *zap.SugaredLogger {
return r.l.With("Recorder", name)
return r.log.With("Recorder", name)
}
func (r *RecorderReconciler) Reconcile(ctx context.Context, req reconcile.Request) (_ reconcile.Result, err error) {