diff --git a/controllers/helmrelease_controller.go b/controllers/helmrelease_controller.go index 2c7dc9a91..92567f9c8 100644 --- a/controllers/helmrelease_controller.go +++ b/controllers/helmrelease_controller.go @@ -132,10 +132,11 @@ func (r *HelmReleaseReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) } // Log reconciliation duration - log.Info(fmt.Sprintf("reconcilation finished in %s, next run in %s", - time.Now().Sub(start).String(), - hr.Spec.Interval.Duration.String(), - )) + durationMsg := fmt.Sprintf("reconcilation finished in %s", time.Now().Sub(start).String()) + if result.RequeueAfter > 0 { + durationMsg = fmt.Sprintf("%s, next run in %s", durationMsg, result.RequeueAfter.String()) + } + log.Info(durationMsg) return result, err }