helmchart: Replace GetInterval() with GetRequeueAfter()
Signed-off-by: Sunny <darkowlzz@protonmail.com>
This commit is contained in:
parent
abc9f9b17e
commit
28ec142cb7
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue