-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Sync loop for Helm Applications that are using post-delete hooks #17117
Comments
We also experienced this and since we have Argo CD installed via helm we had fun trying to rollback 😅 |
On our production ArgoCD, with 1000+ applications, after updating to v2.10.0, the sync and refresh buttons completely freeze the UI. We noticed that the application controller used twice as much memory and cpu but also we didn't found any relevant logs. |
The sharding is not working in 2.10.0 as it was working in previous versions. You will see sync and refresh will start working again |
Fixed by #18003 ? |
I've installed the version below and I am facing the same issue: |
got the same with nvidia gpu operator and self heal disabled don't change anything |
We are also experiencing this, is there a workaround for that? |
We're experiencing the same issue with the Falcon sensor, as mentioned in the previous comment. Could you please advise? |
Got also the same issue. Any tips on how to circumvent it? |
Hey, i found a possible mitigation in Issue-17433 resource.customizations.ignoreDifferences.argoproj.io_Application: |
jqPathExpressions:
- .metadata.finalizers[]? | select(. == "post-delete-finalizer.argocd.argoproj.io" or . == "post-delete-finalizer.argocd.argoproj.io/cleanup")
- if (.metadata.finalizers | length) == 0 then .metadata.finalizers else empty end |
Hello, indeed the mentioned snippet stops the post-delete hooks to be considered as a diff. I'll post here if I can find anything else new |
Checklist:
argocd version
.Describe the bug
Since we've updated to ArgoCD v2.10.0, we are facing a constant refresh/sync issue with Applications that have a Helm template as source and are using "post-delete" hooks in Helm.
Probably this is related to the new feature that added support for post-delete hooks.
The application diff (see screenshot below) shows that it wants to two post-delete-finalizer.argocd.argoproj.io finalizers from the Application.
This change gets synced but almost instantaneously it gets out-of-sync again with the same diff and repeats the same process over and over again.
On our production ArgoCD instance, with more than 1200 applications, this causes ArgoCD to freeze and not sync any other applications anymore (those other application's sync are just stuck in "waiting to start").
To Reproduce
https://REDACTED.git
is a placeholder for a GIT repository that contains directories with ApplicationsWe are using Gloo Edge Enterprise Helm chart v1.15.10 (https://storage.googleapis.com/gloo-ee-helm => gloo-ee).
Expected behavior
Applications that use post-delete Helm hooks should be synced successfully in one go and should not constantly be synced over and over again when auto-sync is enabled.
Screenshots
Version
Logs
No relevant logs found.
The text was updated successfully, but these errors were encountered: