-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
ArgoCD keeps trying to update unchanged DNSRecordSets #14426
Comments
I tried a couple more things. a) I noticed that the b) Even though I could not see any unexpected or automatically added fields, I tried changing the config-connector annotation
Please note, that the project id was not changed, in fact, nothing was. It also turns out that the sync fails immediately on the first try after successfully creating the resource. (Maybe we just haven't noticed it in the past.) |
Got some more information from the kind people over at k8s-config-connector. So apparently config-connector sets a few resource annotations after deployment and this is what's causing the sync problem. I added the following three annotations to the resource definition and ArgoCD no longer fails to sync it:
However I still think there must be something odd going on with this resource type. We have lots of different config-connector resources in the cluster (buckets, bigquery datasets and tables, pubsub topics and schemas, etc.) and most if not all of them set at least some of the above annotations. There are resources with the exact same ones. Yet we only ever experienced this problem with the Also, on a successful ArgoCD sync other resources are marked as
While these
But the |
Checklist:
argocd version
.Describe the bug
ArgoCD tries updating DNSRecordSet (config-connector) resources (and keeps failing) even though there are no changes to the resource.
The fact that it fails to sync in case of a genuine change is not unexpected. Similar problems have been discussed here: #5882 and I think this PR will be useful as a workaround argoproj/gitops-engine#526 .
However the real problem is that these DNSRecordSets aren't being changed. We don't change them. Argocd sees them as synced and green. There is nothing in the diff. If I force replace the resource (it makes the problem go away for a few days), there are no differences between the old and new resource except for a few computed fields (metadata.creationTimestamp, metadata.resourceVersion, metadata.uid).
We've been experiencing this problem for at least a couple of years.
To Reproduce
Expected behavior
I would expect ArgoCD to not attempt updating an unchanged resource.
Screenshots
Version
Logs
The text was updated successfully, but these errors were encountered: