-
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
Controller doesn't skip refreshes for disallowed resources or for ignored fields #9558
Comments
There's reason to believe this doesn't only happen to orphaned resources. Any resource in the tree will be refreshed regardless of ignoreDifferences: https://cloud-native.slack.com/archives/C01TSERG0KZ/p1654110592010629 |
@crenshaw-dev I am working on this and will raise a PR soon. |
@theluckiesthuman Did you get a chance to raise anything? |
@pepe9012 due to the current implementation of orphan resources, I think it is fair to update the current issue to add |
This is issue also impact us. We are using VPA, and VPA controller often refresh their CR, this is triggered ArgoCD for refreshing. A lot of refreshes make DDos attack on our git instance. |
Any update on this? This is a fairly serious issue imho. |
We also have the same problem. We are using HPA without GitOps. Since HPA is an untracked resource, even if we configure the |
@crenshaw-dev can you shed some light on how objects that doesn't belong to an App cause the App refresh?
|
Checklist:
argocd version
.Describe the bug
Suppose I have a frequently-updated resource in a namespace that is monitored by one or more Apps (whether explicitly or via an orphanedResources policy).
The App is refreshed even in these cases:
This fills up logs.
To Reproduce
orphanedResources: {}
is set in the App.Refreshing app XYZ for change in cluster of object test-namespace/test-cm of type v1/ConfigMap
ignoreDifferences
in argocd-cm. Update the ConfigMap and notice that the refresh is still logged.ignoreDifferences
in the Application. Update the ConfigMap and notice that the refresh is still logged.orphanedResource: {}
line from the App. Update the ConfigMap and notice that the refresh is no longer logged.I believe this line is the problem:
argo-cd/controller/appcontroller.go
Line 295 in 61f48d5
The comment indicates disallowed/ignored resources shouldn't trigger a refresh. But as far as I can tell, no such check is being performed.
Expected behavior
I expected the controller to not refresh the app for an ignored or disallowed resource.
Screenshots
Version
Paste the output from `argocd version` here.
Logs
The text was updated successfully, but these errors were encountered: