Skip to content

Commit e0e048a

Browse files
darkowlzzhiddeco
authored andcommitted
helmchart: Replace GetInterval() with GetRequeueAfter()
Signed-off-by: Sunny <[email protected]>
1 parent f14a053 commit e0e048a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/helmchart_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ func (r *HelmChartReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
252252

253253
log.Info(fmt.Sprintf("Reconciliation finished in %s, next run in %s",
254254
time.Since(start).String(),
255-
chart.GetInterval().Duration.String(),
255+
chart.GetRequeueAfter().String(),
256256
))
257-
return ctrl.Result{RequeueAfter: chart.GetInterval().Duration}, nil
257+
return ctrl.Result{RequeueAfter: chart.GetRequeueAfter()}, nil
258258
}
259259

260260
type HelmChartReconcilerOptions struct {

0 commit comments

Comments
 (0)