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: linkerd CRD out of sync #93

Closed
ricsanfre opened this issue Jan 15, 2023 · 2 comments
Closed

ArgoCD: linkerd CRD out of sync #93

ricsanfre opened this issue Jan 15, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ricsanfre
Copy link
Owner

Some Linkerd CRD are out-of-sync:

  • authorizationpolicies.policy.linkerd.io
  • meshtlsauthentications.policy.linkerd.io
  • networkauthentications.policy.linkerd.io

image

In all cases, out of sync reason is caused by empty list value provided in field .spec.names.shortNames field: shortNames: []
image

In this cases, Kubernetes it is not keeping this empty field in its live manifest and so, it is always different from the desired one.

There is an open PR in linkerd (linkerd/linkerd2#10030) that will add shortNames to all these CRDs, so it might solve this issue.

@ricsanfre ricsanfre added the bug Something isn't working label Jan 15, 2023
@ricsanfre
Copy link
Owner Author

As indicated here: argoproj/argo-cd#11074 (comment), there is currently a limitation in Argo CD, only for CRDs, that avoids default values to be considered during diff calculation. This affects Argo CD Application status as it thinks it is out-of-sync when in fact it isn't.

There is no fix yet for the current CRD diff limitation for default values the suggested workaround is configuring ignoreDifference in the application level: https://argo-cd.readthedocs.io/en/stable/user-guide/diffing/

There is an enhancement proposal for solve this: argoproj/argo-cd#11139

@ricsanfre
Copy link
Owner Author

Issue solved upgrading to linkerd stable 2.13.3. PR linkerd/linkerd2#10030 is included and it solves the out-of-sync issue.

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

No branches or pull requests

1 participant