fix(applicationset): use requeue after if generate app errors out (cherry-pick #18761) #19089
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cherry-picked fix(applicationset): use requeue after if generate app errors out (#18761)
The
GenerateApplications
can call to external resources like GithubAPI for instance which might be rate limited or fail. If those requests
somehow fail we should requeue them after some time like (same
reason as
argo-cd/applicationset/controllers/applicationset_controller.go
Line 154 in e98d3b2
For instance, in our environments we were rate limited by Github and the ArgoCD
applicationset controller was logging the following error about every
second or less for every application set using the pull request generator
that we have:
Signed-off-by: Arthur Outhenin-Chalandre arthur.outhenin-chalandre@ledger.fr