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 19, 2023
1 parent a4d86d1 commit 4b2a7c7
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 @@ -291,7 +291,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 @@ -336,7 +336,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 4b2a7c7

Please sign in to comment.