argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.41k stars 5.29k forks source link

Sync issue with argo-cd helm chart 7.4.x #19582

Open jascsch opened 3 weeks ago

jascsch commented 3 weeks ago

Checklist:

Describe the bug

There is a sync issue with argocd version v2.12.1 so that apps are stuck in "OutOfSync" status.

To Reproduce

use the following manifest and try to sync the dapr app.

project: default
destination:
  server: 'https://kubernetes.default.svc'
  namespace: dapr
syncPolicy:
  syncOptions:
    - CreateNamespace=true
    - RespectIgnoreDifferences=true
ignoreDifferences:
  - kind: Secret
    name: dapr-trust-bundle
    namespace: dapr
    jsonPointers:
      - /data
sources:
  - repoURL: 'https://dapr.github.io/helm-charts/'
    targetRevision: 1.11.1
    helm:
      valueFiles:
        - $values/tools/dapr/values.yaml
      releaseName: dapr
      skipCrds: true
    chart: dapr
  - repoURL: 'https://git.xxx.com/org/gitops-cluster-dev.git'
    targetRevision: HEAD
    ref: values

Expected behavior

The sync status should be "Synced" instead of "OutOfSync" The sync works perfectly fine with helm chart version 7.3.x

Screenshots

image

Version

argocd v2.12.1
helm chart argo-cd-7.4.4

Logs

no relevant application logs available.
moksongmin commented 3 weeks ago

I have a similar issue:

I use Crossplane to provision an AWS RDS Instance. I've added an 'identifier' parameter to two of my instances, and it can't be synced in ArgoCD (v7.4.1).

image

image

*Note: I haven't tested with previous 7.3.X version.

grv180290 commented 5 days ago

Try using Ignore difference to get rid of this OutofSync status https://argo-cd.readthedocs.io/en/stable/user-guide/diffing/#application-level-configuration

jascsch commented 5 days ago

I am already using Ignore difference like this:

ignoreDifferences:
  - kind: Secret
    name: dapr-trust-bundle
    namespace: dapr
    jsonPointers:
      - /data

What else do we have to do to get rid of this issue?

moksongmin commented 3 days ago

ignoreDifferences worked for me, as well.

jascsch commented 1 day ago

Hi @moksongmin can you please paste an example of your manifest with ignoreDifferences which worked in your case?