Closed esn89 closed 8 months ago
Interestingly enough if I delete the AppOfApps, the same application that was flapping is the only one that does NOT get deleted:
My application, which is part of an AppOfApps, is flapping between OutOfSync and Synced. Once it is synced by the Autosync, it goes back to OutOfSync, and I think I found the issue in the logs:
time="2024-01-24T19:33:43Z" level=info msg="Updating resource result, status: 'Synced' -> 'Synced', phase 'Running' -> 'Succeeded', message 'application.argoproj.io/cluster-us-provision-backend-server configured. Warning: resource applications/cluster-us-provision-backend-server is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by apply. apply should only be used on resources created declaratively by either create --save-config or apply. The missing annotation will be patched automatically.' -> 'application.argoproj.io/cluster-us-provision-backend-server configured. Warning: resource applications/cluster-us-provision-backend-server is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by apply. apply should only be used on resources created declaratively by either create --save-config or apply. The missing annotation will be patched automatically.'" application=argocd/cluster-us-data-management-svc kind=Application name=cluster-us-provision-backend-server namespace=argocd phase=Sync syncId=12237-gmzyQ
I compared this, with another App within the same AppOfApp, and they indeed have a "last-applied-configuration" on their manifest. However, if ArgoCD itself has synced it, then why isn't this annotation staying permanently in my Application's (cluster-us-provision-backend-server)'s manifest?
Issue closed. Turns out this resource was duplicated and another ApplicationSet was fighting to change it.
Also posted to Slack here: https://cloud-native.slack.com/archives/C01TSERG0KZ/p1706035288683999 but no satisfactory answer
Checklist:
argocd version
.Describe the bug
Application from AppOfApp keeps flapping between synced and out of sync.
To Reproduce I have an AppSet which generates an AppOfApp for each cluster. The cluster secret looks like this:
I have an AppSet which generates (along with progressive syncs enabled, the AppOfApps)
The AppOfApp has a bunch of Apps, each with a sync wave from 0-9 associated to it.
What's going on is that, only App with Sync Wave 8 is flapping between synced and unsynced. These are the changes it applies and reverts every minute:
screenshot
screenshot2
Expected behavior
I expect this diff to be applied once and not get reverted.
Screenshots
Version
Logs