Skip to content

Commit

Permalink
Remove client get from repo reconciler
Browse files Browse the repository at this point in the history
  • Loading branch information
liamfallon committed Nov 14, 2023
1 parent 9ec4452 commit 2dfb06a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/pkg/reconcilers/repository/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ func (r *reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu
}

// check if client exists otherwise retry
giteaClient := r.giteaClient.Get()
if giteaClient == nil {
if r.giteaClient == nil {
err := fmt.Errorf("gitea server unreachable")
r.l.Error(err, "cannot connect to git server")
cr.SetConditions(infrav1alpha1.Failed(err.Error()))
Expand Down

0 comments on commit 2dfb06a

Please sign in to comment.