-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Auto Sync terminate #16489
Comments
I think the problem is rooted deeper. Retry in auto sync never picks up new changes from the source, and keeps iterating over the same target revision until the retry policy is exhausted. With a progressing timeout, this will not cater for above use case. While termination of long progressing resources is also required (and a great idea btw), I think that Argo CD should check the source (and parameters in the Application) for changes and potentially re-start the sync upon such changes. |
Refer: #12904 |
Potentially (partially) addressed with #15603? |
@blakepettersson i dont think so as that is around retries where as this addresses the issue where you find syncs stuck at times like 20+ hours, or rather they still have not retried once |
@jannfis i guess the motivation based on the issue trail that led me here is for example,
|
Yeah, this is something I'd need as well. We wish to control lifecycle of ApplicationSet-managed apps purely through Git, but right now we need to have a CI process in between which does a |
Summary
An ability to override "stuck" auto-sync operation. It is known that sync might stuck due to various reasons: sync job could not be complete due to "image pull backoff"; deployment cannot reach a healthy state due to failing readiness probe, etc. Ideally, it should be enough to fix the root cause and let Argo CD deploy new changes. However, currently, Argo CD is not going to give up on a first sync if new changes are detected.
Motivation
Preview environments. Argo CD application generated by Appset for a pull request might fail, because code in the PR might have issue. Engineer should be able to just fix bug in the code, push new change to the PR and see updated synced applciation.
Proposal
Introduce a
syncPolicy.terminate
setting that allows configuring automatic operation termination when based on the state of configured "problematic" resources.Example below cancels automatic sync :
The text was updated successfully, but these errors were encountered: