Skip to content

Commit

Permalink
Retry template processing when k8s dep watcher is stopping a watch
Browse files Browse the repository at this point in the history
This happened in a PR CI failure where the watch was stopped and started
again quickly before the watch was fully stopped.

Signed-off-by: mprahl <[email protected]>
  • Loading branch information
mprahl authored and openshift-merge-bot[bot] committed Jul 2, 2024
1 parent f22f0f2 commit 852e8bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/propagator/propagation.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ func (r *ReplicatedPolicyReconciler) processTemplates(
k8serrors.IsInternalError(tplErr) ||
k8serrors.IsServiceUnavailable(tplErr) ||
k8serrors.IsTimeout(tplErr) ||
k8serrors.IsTooManyRequests(tplErr) {
k8serrors.IsTooManyRequests(tplErr) ||
errors.Is(tplErr, k8sdepwatches.ErrWatchStopping) {
tplErr = fmt.Errorf("%w%w", ErrRetryable, tplErr)
}

Expand Down

0 comments on commit 852e8bc

Please sign in to comment.