Skip to content

ignoreDifferences not working properly #24423

@nebula-it

Description

@nebula-it

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

Setting the below ignoreDifferences does not show the diff, but still marks the item as out of sync.

  ignoreDifferences:
    - group: "*"
      kind: Secret
      name: cilium-ca
      jsonPointers:
      - /data/ca.crt
      - /data/ca.key

Here is how it looks in UI:

Image

and if ignoreDifferences is not defined at all, then the diff is showing like:

Image

To Reproduce

Deploy this application:

---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: cilium
  finalizers:
    - resources-finalizer.argocd.argoproj.io
  annotations:
    argocd.argoproj.io/compare-options: ServerSideDiff=true
spec:
  destination:
    namespace: kube-system
    server: "https://kubernetes.default.svc"
  project: default
  source:
    chart: cilium
    repoURL: https://helm.cilium.io/
    targetRevision: '1.18.1'
  syncPolicy:
    syncOptions:
      - CreateNamespace=true
      - RespectIgnoreDifferences=true
  # https://docs.cilium.io/en/stable/configuration/argocd-issues/#solution
  ignoreDifferences:
    - group: "*"
      kind: Secret
      name: cilium-ca
      jsonPointers:
      - /data/ca.crt
      - /data/ca.key

Expected behavior

The UI should not show Out of Sync for items that are listed in ignoreDifferences

Screenshots

Version

argocd: v3.1.1+fa342d1
  BuildDate: 2025-08-25T16:00:16Z
  GitCommit: fa342d153e0e7942938256aea491a68439a53c44
  GitTreeState: clean
  GoVersion: go1.24.6
  Compiler: gc
  Platform: windows/amd64
argocd-server: v3.1.3+c1467b8

Logs

Paste any relevant application logs here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    answeredQuestions/Issues that are answered awaiting to be closedbugSomething isn't workingcomponent:diffIssue related to diff problems and unexpected errors during difffeature:server-side-diffIssue about the server side diff feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions