Skip to content
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

App of apps regularly gets out of sync when some apps have explictly specified empty sync policy #19043

Open
3 tasks done
andrii-korotkov-verkada opened this issue Jul 13, 2024 · 2 comments
Labels
app-of-apps Issues about the app-of-apps pattern bug Something isn't working server-side-diff type:bug

Comments

@andrii-korotkov-verkada
Copy link
Contributor

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of 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

Screenshot 2024-07-12 at 4 58 22 PM

Version

Custom build from master around 2024/07/07 plus #18972, #18694, argoproj/gitops-engine#601, argoproj/gitops-engine#603

Logs

@andrii-korotkov-verkada andrii-korotkov-verkada added the bug Something isn't working label Jul 13, 2024
@alexmt alexmt added component:applications-set Bulk application management related type:bug labels Jul 13, 2024
@ishitasequeira ishitasequeira added app-of-apps Issues about the app-of-apps pattern server-side-diff and removed component:applications-set Bulk application management related labels Jul 16, 2024
@andrii-korotkov-verkada
Copy link
Contributor Author

This may be a duplicate of #18213, however PRs there weren't enough to fix this. The EKS has Kubernetes 1.28.

@andrii-korotkov-verkada
Copy link
Contributor Author

One caveat is sometime we want fields with empty value, e.g. when automated sync is enabled. So just equating empty value and absent value during a diff may not work as a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-of-apps Issues about the app-of-apps pattern bug Something isn't working server-side-diff type:bug
Projects
None yet
Development

No branches or pull requests

3 participants