Skip to content

Commit

Permalink
Add context to reconciler arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-demicev committed Mar 8, 2021
1 parent b088944 commit 4f9d781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exp/operator/controllers/coreprovider_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type CoreProviderReconciler struct {
// +kubebuilder:rbac:groups=operator.cluster.x-k8s.io,resources=coreproviders,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=operator.cluster.x-k8s.io,resources=coreproviders/status,verbs=get;update;patch

func (r *CoreProviderReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
func (r *CoreProviderReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
_ = context.Background()
_ = r.Log.WithValues("coreprovider", req.NamespacedName)

Expand Down

0 comments on commit 4f9d781

Please sign in to comment.