Skip to content

Commit

Permalink
added comment for explaining lint exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEnigmaa committed Jun 4, 2024
1 parent dc1747e commit 08c189f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/controller/cluster_monitoring_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ func (r *ClusterMonitoringReconciler) Reconcile(ctx context.Context, req ctrl.Re
return ctrl.Result{}, errors.WithStack(err)
}

// Linting is disabled for the 2 following lines as otherwise it fails with the following error:
// "should not use built-in type string as key for value"
ctx = context.WithValue(ctx, "cluster", cluster.Name) // nolint
ctx = context.WithValue(ctx, "installation", r.ManagementCluster.Name) // nolint
logger := log.FromContext(ctx)
Expand Down

0 comments on commit 08c189f

Please sign in to comment.