Skip to content

Commit

Permalink
add timeout error to applyManifest retry list
Browse files Browse the repository at this point in the history
  • Loading branch information
djoshy committed Dec 18, 2024
1 parent 36e2d57 commit 9fd5d67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/resourceapply/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ func IsApplyErrorRetriable(err error) bool {
if apierrors.IsConflict(err) {
return true
}
// Retry when the server takes too long to respond to the apply requests.
if apierrors.IsTimeout(err) {
return true
}
// Add any other errors to be added to the retry here.

klog.Infof("Skipping retry in Apply fn for error: %s", err)
Expand Down

0 comments on commit 9fd5d67

Please sign in to comment.