helmrepo: Replace GetInterval() with GetRequeueAfter()

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

View File

@ -167,10 +167,10 @@ func (r *HelmRepositoryReconciler) Reconcile(ctx context.Context, req ctrl.Reque
log.Info(fmt.Sprintf("Reconciliation finished in %s, next run in %s",
time.Since(start).String(),
repository.GetInterval().Duration.String(),
repository.GetRequeueAfter().String(),
))
return ctrl.Result{RequeueAfter: repository.GetInterval().Duration}, nil
return ctrl.Result{RequeueAfter: repository.GetRequeueAfter()}, nil
}
func (r *HelmRepositoryReconciler) reconcile(ctx context.Context, repo sourcev1.HelmRepository) (sourcev1.HelmRepository, error) {