-
Notifications
You must be signed in to change notification settings - Fork 6.3k
fix(appset): add default retry limit for operations triggered via RollingSync when syncPolicy.retry is not defined (#20428) #23335
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
fix(appset): add default retry limit for operations triggered via RollingSync when syncPolicy.retry is not defined (#20428) #23335
Conversation
…lingSync when syncPolicy.retry is not defined Signed-off-by: Mike Ng <ming@redhat.com>
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Hi @StupidScience, since there was no response to @andrii-korotkov-verkada initial review feedback from last year and the original PR #20429 has been stale for some time, I've opened this PR instead. It's based on @crenshaw-dev 's #20429 (comment) Thanks again for bringing this to the community’s attention and for providing the initial fix. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #23335 +/- ##
==========================================
+ Coverage 59.96% 60.03% +0.07%
==========================================
Files 342 342
Lines 58807 58811 +4
==========================================
+ Hits 35263 35309 +46
+ Misses 20671 20632 -39
+ Partials 2873 2870 -3 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to make this configurable via config parameter. But based on @crenshaw-dev's comment from previous MR, the change looks good!!
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
…lingSync (argoproj#20428) (argoproj#23335) Signed-off-by: Mike Ng <ming@redhat.com> Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
…lingSync (argoproj#20428) (argoproj#23335) Signed-off-by: Mike Ng <ming@redhat.com> Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Signed-off-by: Jonathan Ogilvie <jonathan.ogilvie@sumologic.com>
…lingSync (argoproj#20428) (argoproj#23335) Signed-off-by: Mike Ng <ming@redhat.com> Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Signed-off-by: enneitex <etienne.divet@gmail.com>
Checklist:
Fixes #20428
Extending @StupidScience 's fix in #20429 by adding a comment and unit testing. When sync operations are triggered from the ApplicationSet RollingSync strategy, apply a default retry limit of 5 if the ApplicationSet's Application template does not define syncPolicy.retry. This aligns with the default value used by the appcontroller auto-sync: https://github.com/argoproj/argo-cd/blob/v3.0.5/controller/appcontroller.go#L2126
In the future, this could be made configurable via the ApplicationSet spec.