Skip to content

Commit

Permalink
Merge pull request #367 from sthaha/fix-recon-condition
Browse files Browse the repository at this point in the history
fix: report failure during reconciliation correctly
  • Loading branch information
sthaha authored Mar 6, 2024
2 parents 4d2756f + 03a414c commit de5e325
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/controllers/kepler.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (r *KeplerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr
logger.V(6).Info("Running sub reconcilers", "kepler", kepler.Spec)

result, recErr := r.runKeplerReconcilers(ctx, kepler)
updateErr := r.updateStatus(ctx, req, err)
updateErr := r.updateStatus(ctx, req, recErr)

if recErr != nil {
return result, recErr
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/kepler_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (r *KeplerInternalReconciler) Reconcile(ctx context.Context, req ctrl.Reque
logger.V(6).Info("Running sub reconcilers", "kepler-internal", ki.Spec)

result, recErr := r.runReconcilers(ctx, ki)
updateErr := r.updateStatus(ctx, req, err)
updateErr := r.updateStatus(ctx, req, recErr)

if recErr != nil {
return result, recErr
Expand Down

0 comments on commit de5e325

Please sign in to comment.