argo-cd
argo-cd copied to clipboard
Server-Side Diff Reports out of sync on "status" key (among other noisy diffs)
Checklist:
- [x] I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
- [x] I've included steps to reproduce the bug.
- [x] I've pasted the output of
argocd version
.
Describe the bug
Applications using server-side diff report incorrect diffs. Especially notable with app-of-apps, daemonsets.
To Reproduce
Enable server-side diff
Expected behavior
Don't report diffs on fields that shouldn't be synced
Screenshots
Example: an argoCD Application in an app-of-apps setup changes its status when the application syncs
Daemonsets reporting out of sync when a new node is being added / a pod isn't ready yet
Reporting missing labels, even after syncing
Version
argocd: v2.9.3+6eba5be.dirty
BuildDate: 2023-12-02T00:36:55Z
GitCommit: 6eba5be864b7e031871ed7698f5233336dfe75c7
GitTreeState: dirty
GoVersion: go1.21.4
Compiler: gc
Platform: linux/amd64
argocd-server: v2.10.2+fcf5d8c
Logs
Paste any relevant application logs here.
also experience these problems with latest version 2.10.2
2.10.4 just installed from 2.9.x, after enabling server side diff and waiting for a bit I had a couple of Apps report OutOfSync status due to a missing app
label - which they all had on the resources.
Disabled the server side diff, the app immediately went to a good sync state.
I'm having the same issue. I'm deploying emqx (mqtt broker) which for some reason likes to use the status field to keep track of the uptime of the nodes, this causes a sync to be triggered every loop.
status:
conditions:
- lastTransitionTime: '2024-04-14T12:45:31Z'
message: Cluster is ready
reason: Ready
status: 'True'
type: Ready
- lastTransitionTime: '2024-04-14T12:45:30Z'
message: Cluster is available
reason: Available
status: 'True'
type: Available
- lastTransitionTime: '2024-04-14T12:45:30Z'
message: Core nodes is ready
reason: CoreNodesReady
status: 'True'
type: CoreNodesReady
- lastTransitionTime: '2024-04-14T12:43:38Z'
message: Core nodes progressing
reason: CoreNodesProgressing
status: 'True'
type: CoreNodesProgressing
coreNodes:
- connections: 1
uptime: 65596542
version: 5.6.0
- connections: 1
uptime: 65719858
version: 5.6.0