Skip to content

Commit

Permalink
Pass remoteCentral by pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
rhybrillou committed Jun 12, 2023
1 parent 071697f commit 65f584b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fleetshard/pkg/central/reconciler/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (r *CentralReconciler) Reconcile(ctx context.Context, remoteCentral private
}
}

if err = r.reconcileCentral(ctx, remoteCentral, central); err != nil {
if err = r.reconcileCentral(ctx, &remoteCentral, central); err != nil {
return nil, err
}

Expand Down Expand Up @@ -333,7 +333,7 @@ func (r *CentralReconciler) Reconcile(ctx context.Context, remoteCentral private
return status, nil
}

func (r *CentralReconciler) reconcileCentral(ctx context.Context, remoteCentral private.ManagedCentral, central *v1alpha1.Central) error {
func (r *CentralReconciler) reconcileCentral(ctx context.Context, remoteCentral *private.ManagedCentral, central *v1alpha1.Central) error {
remoteCentralName := remoteCentral.Metadata.Name
remoteCentralNamespace := remoteCentral.Metadata.Namespace

Expand Down

0 comments on commit 65f584b

Please sign in to comment.