Skip to content

Commit 5f125eb

Browse files
darkowlzzhiddeco
authored andcommitted
helmrepo: Replace GetInterval() with GetRequeueAfter()
Signed-off-by: Sunny <[email protected]>
1 parent ba7cbd3 commit 5f125eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/helmrepository_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ func (r *HelmRepositoryReconciler) Reconcile(ctx context.Context, req ctrl.Reque
167167

168168
log.Info(fmt.Sprintf("Reconciliation finished in %s, next run in %s",
169169
time.Since(start).String(),
170-
repository.GetInterval().Duration.String(),
170+
repository.GetRequeueAfter().String(),
171171
))
172172

173-
return ctrl.Result{RequeueAfter: repository.GetInterval().Duration}, nil
173+
return ctrl.Result{RequeueAfter: repository.GetRequeueAfter()}, nil
174174
}
175175

176176
func (r *HelmRepositoryReconciler) reconcile(ctx context.Context, repo sourcev1.HelmRepository) (sourcev1.HelmRepository, error) {

0 commit comments

Comments
 (0)