Skip to content

ignoreDifferences hits even when managedFieldsManagers is not a match #25102

@madaraszg-tulip

Description

@madaraszg-tulip

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

We have the tempo-distributed chart installed. We have increased the replicas count for the tempo-metrics-generator statefulset, however argocd does not see the diff.

To Reproduce

We do have the following config in argocd to ignore replica changes by HPA.

      resource.customizations.ignoreDifferences.apps_StatefulSet: |
        managedFieldsManagers:
          - kube-controller-manager
        jsonPointers:
          - /spec/replicas

If we remove this config, then argocd correctly sees the diff in the replicas count. However /spec/replicas is NOT managed by kube-controller-manager

Expected behavior

I would expect argocd to see the replicas change, as it should not be ignored according to the configuration.

Screenshots

Image Image Image

managedFields is too long to post a screenshot, here's an excerpt:

  managedFields:
    - apiVersion: apps/v1
      fieldsType: FieldsV1
      fieldsV1:
        f:metadata:
          ...
        f:spec:
          f:minReadySeconds: {}
          f:persistentVolumeClaimRetentionPolicy:
            .: {}
            f:whenDeleted: {}
            f:whenScaled: {}
          f:podManagementPolicy: {}
          f:replicas: {}
          ...
      manager: argocd-controller
      operation: Update
      time: '2025-10-27T21:02:12Z'

If I remove the above mentioned config snippet, which refers to kube-controller-manager, the diff shows up.

Version

$ argocd version
argocd: v3.0.12+ed1e239
  BuildDate: 2025-07-25T19:36:41Z
  GitCommit: ed1e2397ef9af6d23b284e39d504308cdda1957b
  GitTreeState: clean
  GoVersion: go1.24.4
  Compiler: gc
  Platform: linux/amd64

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage/pendingThis issue needs further triage to be correctly classified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions