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

ArgoCD not auto syncing when using annotation based resource tracking #10269

Closed
3 tasks done
roelvdberg opened this issue Aug 10, 2022 · 3 comments · Fixed by #10390
Closed
3 tasks done

ArgoCD not auto syncing when using annotation based resource tracking #10269

roelvdberg opened this issue Aug 10, 2022 · 3 comments · Fixed by #10390
Assignees
Labels
bug Something isn't working

Comments

@roelvdberg
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

Diffing/syncing is not working correctly when using annotation based tracking.
We see this clearly when we deploy a custom resource which is not compliant with its CRD.

To Reproduce

Configure annotation based tracking
Deploy a valid manifest and make sure it is synced.
Change the manifest, ArgoCD is not detecting that it should sync the manifest.

It is detecting that there is a diff in the manifest.

Expected behavior
I would expect ArgoCD to start syncing as soon as it detects a new change. At least say that it is out of sync. (when autosync is off)

Screenshots
Annotations:
1 img-1-annotation
2 img-2-annotation
Labels:

3 img-1-label
4 img-2-label

Version

argocd: v2.4.7+81630e6
  BuildDate: 2022-07-18T21:38:56Z
  GitCommit: 81630e6d5075ac53ac60457b51343c2a09a666f4
  GitTreeState: clean
  GoVersion: go1.18.3
  Compiler: gc
  Platform: linux/amd64
argocd-server: v2.4.8+844f79e
  BuildDate: 2022-07-29T17:01:39Z
  GitCommit: 844f79eb9d8f3ab96d4ce6f8df211c6093a660ba
  GitTreeState: clean
  GoVersion: go1.18.4
  Compiler: gc
  Platform: linux/amd64
  Kustomize Version: v4.4.1 2021-11-11T23:36:27Z
  Helm Version: v3.8.1+g5cb9af4
  Kubectl Version: v0.23.1
  Jsonnet Version: v0.18.0

Logs

Paste any relevant application logs here.
@roelvdberg roelvdberg added the bug Something isn't working label Aug 10, 2022
@pasha-codefresh pasha-codefresh self-assigned this Aug 17, 2022
@todaywasawesome
Copy link
Contributor

Could be related to #10314

@jannfis
Copy link
Member

jannfis commented Aug 18, 2022

@todaywasawesome Thanks, it actually is related. I have a patch ready that I'm currently writing e2e tests for.

@jannfis
Copy link
Member

jannfis commented Aug 22, 2022

Just as a heads-up, v2.4.11 which includes the fix for this issue has been released today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants