App of apps regularly gets out of sync when some apps have explictly specified empty sync policy #19043
Open
3 tasks done
Labels
app-of-apps
Issues about the app-of-apps pattern
bug
Something isn't working
component:application
component:sync
server-side-diff
type:bug
version:2.12
Latest confirmed affected version is 2.12
Checklist:
argocd version
.Describe the bug
Some applications managed by the app of apps explicitly specify
syncPolicy: {}
, sometimes in kustomize overlays for some shards, so just removing it is not an option. Apparently empty sync policy gets deleted somehow and ArgoCD thinks that app is out of sync since empty sync policy needs to be added. Server side diff is enabled, but not server side apply.To Reproduce
Create an app of apps managing an application with
syncPolicy: {}
. Observe the behavior of app of apps for some time. Eventually when the field is deleted and refresh happens, it'd show up as out of sync and would try to update the app.Expected behavior
App doesn't consider empty sync policy as being out of sync.
Screenshots
Version
Custom build from master around 2024/07/07 plus #18972, #18694, argoproj/gitops-engine#601, argoproj/gitops-engine#603
Logs
The text was updated successfully, but these errors were encountered: