Skip to content

Commit 053a20f

Browse files
authored
Merge pull request #703 from fluxcd/fix-hr-reconcile-loop
Fix HelmRelease reconciliation loop
2 parents d267907 + 7c75fc4 commit 053a20f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/controller/helmrelease_controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,10 @@ func (r *HelmReleaseReconciler) reconcileRelease(ctx context.Context,
483483
}
484484

485485
hr.Status.LastReleaseRevision = util.ReleaseRevision(rel)
486+
if updateStatusErr := r.patchStatus(ctx, &hr); updateStatusErr != nil {
487+
log.Error(updateStatusErr, "unable to update status after state update")
488+
return hr, updateStatusErr
489+
}
486490

487491
if err != nil {
488492
reason := v2.ReconciliationFailedReason

0 commit comments

Comments
 (0)