Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requeue after interval on source not found errors #182

Merged
merged 1 commit into from
Nov 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions controllers/kustomization_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ func (r *KustomizationReconciler) Reconcile(req ctrl.Request) (ctrl.Result, erro
}
r.recordReadiness(kustomization)
log.Info(msg)
// do not requeue, when the source is created the watcher should trigger a reconciliation
return ctrl.Result{}, nil
// do not requeue immediately, when the source is created the watcher should trigger a reconciliation
return ctrl.Result{RequeueAfter: kustomization.Spec.Interval.Duration}, nil
} else {
// retry on transient errors
return ctrl.Result{Requeue: true}, err
Expand All @@ -222,8 +222,8 @@ func (r *KustomizationReconciler) Reconcile(req ctrl.Request) (ctrl.Result, erro
}
r.recordReadiness(kustomization)
log.Info(msg)
// do not requeue, when the artifact is created the watcher should trigger a reconciliation
return ctrl.Result{}, nil
// do not requeue immediately, when the artifact is created the watcher should trigger a reconciliation
return ctrl.Result{RequeueAfter: kustomization.Spec.Interval.Duration}, nil
}

// check dependencies
Expand Down