Skip to content

Commit

Permalink
Fix unwrapped error
Browse files Browse the repository at this point in the history
  • Loading branch information
chdxD1 committed Dec 20, 2023
1 parent fffe581 commit 6751a29
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion controllers/routingtable_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package controllers

import (
"context"
"fmt"
"github.com/telekom/das-schiff-network-operator/pkg/reconciler"

"k8s.io/apimachinery/pkg/runtime"
Expand Down Expand Up @@ -52,14 +53,19 @@ type RoutingTableReconciler struct {
func (r *RoutingTableReconciler) Reconcile(ctx context.Context, _ ctrl.Request) (ctrl.Result, error) {
_ = log.FromContext(ctx)

// Run ReconcileDebounced through debouncer
r.Reconciler.Reconcile(ctx)

return ctrl.Result{RequeueAfter: requeueTime}, nil
}

// SetupWithManager sets up the controller with the Manager.
func (r *RoutingTableReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
err := ctrl.NewControllerManagedBy(mgr).
For(&networkv1alpha1.RoutingTable{}).
Complete(r)
if err != nil {
return fmt.Errorf("error creating controller: %w", err)
}
return err
}

0 comments on commit 6751a29

Please sign in to comment.