helmchart: Replace GetInterval() with GetRequeueAfter()

Signed-off-by: Sunny <darkowlzz@protonmail.com>
This commit is contained in:
Sunny 2021-11-24 22:12:15 +05:30
parent abc9f9b17e
commit 28ec142cb7
1 changed files with 2 additions and 2 deletions

View File

@ -252,9 +252,9 @@ func (r *HelmChartReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
log.Info(fmt.Sprintf("Reconciliation finished in %s, next run in %s", log.Info(fmt.Sprintf("Reconciliation finished in %s, next run in %s",
time.Since(start).String(), time.Since(start).String(),
chart.GetInterval().Duration.String(), chart.GetRequeueAfter().String(),
)) ))
return ctrl.Result{RequeueAfter: chart.GetInterval().Duration}, nil return ctrl.Result{RequeueAfter: chart.GetRequeueAfter()}, nil
} }
type HelmChartReconcilerOptions struct { type HelmChartReconcilerOptions struct {