helmrepo: Replace GetInterval() with GetRequeueAfter()
Signed-off-by: Sunny <darkowlzz@protonmail.com>
This commit is contained in:
parent
6808244b53
commit
a867303f54
|
@ -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",
|
log.Info(fmt.Sprintf("Reconciliation finished in %s, next run in %s",
|
||||||
time.Since(start).String(),
|
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) {
|
func (r *HelmRepositoryReconciler) reconcile(ctx context.Context, repo sourcev1.HelmRepository) (sourcev1.HelmRepository, error) {
|
||||||
|
|
Loading…
Reference in New Issue