#23283·argo-cd

Argocd overly conservative with RespectIgnoreDifferences for Rollouts

Author: santi1sCreated Jun 5, 2025Updated Sep 29, 2026
Labelsbugcomponent:ignore-differences

Checklist:

  • [x ] I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • [ x] I've included steps to reproduce the bug.
  • [ x] I've pasted the output of argocd version.

Describe the bug

ArgoCD handling of RespectIgnoreDifferences is being overly conservative in the case of Rollouts and not updating any fields in the containers, even though only image and imagePullPolicy should be ignored. This does not happen with deployments

To Reproduce

  1. Configure global ignoreDifferences in argocd-cm for spec.template.spec.initContainers[].imagePullPolicy and .spec.template.spec.initContainers[].image for rolouts and deployments
k
  "resource.customizations.ignoreDifferences.apps_Deployment": "jqPathExpressions:\n- .spec.template.spec.containers[].image\n- .spec.template.spec.containers[].imagePullPolicy\n- .spec.template.spec.initContainers[].image\n- .spec.template.spec.initContainers[].imagePullPolicy\n",
  "resource.customizations.ignoreDifferences.argoproj.io_Rollout": "jqPathExpressions:\n- .spec.template.spec.containers[].image\n- .spec.template.spec.containers[].imagePullPolicy\n- .spec.template.spec.initContainers[].image\n- .spec.template.spec.initContainers[].imagePullPolicy
  1. Configure the following apps
yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: kube-test
  namespace: argocd
spec:
  destination:
    namespace: default
    server: https://kubernetes.default.svc
  project: default
  source:
    path: nginx_rollout
    repoURL: https://github.com/xxxx/kube
    targetRevision: HEAD
  syncPolicy:
    syncOptions:
    - CreateNamespace=true
    - RespectIgnoreDifferences=true

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: nginx-deployment-app
  namespace: argocd
spec:
  destination:
    namespace: default
    server: https://kubernetes.default.svc
  project: default
  source:
    path: nginx_deployment
    repoURL: https://github.com/xxxx/kube
  syncPolicy:
    syncOptions:
    - CreateNamespace=true
    - RespectIgnoreDifferences=true

whith the following deployment and rollout manifests

yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  namespace: default
  labels:
    app: nginx-deployment
spec:
  replicas: 1
  selector:
    matchLabels:
      app: nginx-deployment
  template:
    metadata:
      labels:
        app: nginx-deployment
    spec:
      containers:
      - name: nginx
        image: nginx:latest
        ports:
        - containerPort: 80
          protocol: TCP
        resources:
          requests:
            cpu: "25m"
            memory: "70Mi"
          limits:
            cpu: "500m"
            memory: "256Mi"

apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
  name: nginx-rollout
  namespace: default
  labels:
    app: nginx
spec:
  replicas: 1
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:latest
        imagePullPolicy: Always
        ports:
        - containerPort: 80
          protocol: TCP
        resources:
          requests:
            cpu: "28m"
            memory: "70Mi"
          limits:
            cpu: "500m"
            memory: "256Mi"
  revisionHistoryLimit: 2
  strategy:
    canary: {}
  1. Push an update of any of the cpu or memory resources to GitHub

  2. Both deployment and rollout will show OutOfSync

  3. Sync the deployment and rollout apps ( RespectIgnoreDifferences=true)

bash
argocd app sync nginx-deployment-app --sync-option RespectIgnoreDifferences=true
argocd app sync kube-test --sync-option RespectIgnoreDifferences=true

The Sync operation shows as successfull for boths apps but the Rollout app stays out of sync

  1. Sync the rollout app ( RespectIgnoreDifferences=false)
bash
argocd app sync kube-test --sync-option RespectIgnoreDifferences=fale

The Sync operation shows as successfull and the rollout app changes to Synced Status Expected behavior

The sync operation for the rollout with RespectIgnoreDifferences=true should have updated the spec.template.spec.containers[0].resources

Version

bash
argocd: v2.13.0+347f221
  BuildDate: 2024-11-04T15:31:13Z
  GitCommit: 347f221adba5599ef4d5f12ee572b2c17d01db4d
  GitTreeState: clean
  GoVersion: go1.23.2
  Compiler: gc
  Platform: darwin/arm64
argocd-server: v3.0.5+af9ebac
  BuildDate: 2025-05-29T17:30:53Z
  GitCommit: af9ebac0bb35dc16eb034c1cefaf7c92d1029927
  GitTreeState: clean
  GoVersion: go1.24.1
  Compiler: gc
  Platform: linux/arm64
  Kustomize Version: v5.6.0 2025-01-14T15:12:17Z
  Helm Version: v3.17.1+g980d8ac

Logs

Below result of parsing the request body of the rquests made from argocd-application-controlle to API server The "CHANGES DETECTED" section in the parser shows the differences between:

  • oldObject: What was in the cluster before the API request
  • object: What the API request is trying to set

An empty "CHANGES DETECTED" section means the parser found no differences between the old and new objects in the fields it's checking (image, imagePullPolicy, and resources)

Deployment App Sync RespectIgnoreDifferences=true

================================================================================
REQUEST #17
================================================================================
Operation: UPDATE
User: system:serviceaccount:argocd:argocd-application-controller
UID: 3a4422a7-4b14-472d-bc0a-9589d1862a59
Resource: apps/v1/deployments
Name: nginx-deployment
Namespace: default

Object Kind: Deployment
Object Name: nginx-deployment

Container 1: nginx
  Image: nginx:1.24
  ImagePullPolicy: IfNotPresent
  Resources:
    Requests: CPU=25m, Memory=70Mi
    Limits: CPU=500m, Memory=256Mi

--- CHANGES DETECTED ---

Container 'nginx' changes:
  - CPU request: 28m -> 25m
  - Memory request: 60Mi -> 70Mi

--- REQUEST SOURCE ---
Username: system:serviceaccount:argocd:argocd-application-controller
Groups: system:serviceaccounts, system:serviceaccounts:argocd, system:authenticated

Rollout App Sync RespectIgnoreDifferences=true

================================================================================
REQUEST #18
================================================================================
Operation: UPDATE
User: system:serviceaccount:argocd:argocd-application-controller
UID: faad7fba-b44c-4ba3-b0c7-854b516cc555
Resource: argoproj.io/v1alpha1/rollouts
Name: nginx-rollout
Namespace: default

Object Kind: Rollout
Object Name: nginx-rollout

Container 1: nginx
  Image: nginx:1.23
  ImagePullPolicy: Always
  Resources:
    Requests: CPU=25m, Memory=60Mi
    Limits: CPU=500m, Memory=256Mi

--- CHANGES DETECTED ---

--- REQUEST SOURCE ---
Username: system:serviceaccount:argocd:argocd-application-controller
Groups: system:serviceaccounts, system:serviceaccounts:argocd, system:authenticated

Rollout App Sync RespectIgnoreDifferences=false

================================================================================
REQUEST #19
================================================================================
Operation: UPDATE
User: system:serviceaccount:argocd:argocd-application-controller
UID: 6bfc88bc-a6ec-4176-9f43-561275609610
Resource: argoproj.io/v1alpha1/rollouts
Name: nginx-rollout
Namespace: default

Object Kind: Rollout
Object Name: nginx-rollout

Container 1: nginx
  Image: nginx:latest
  ImagePullPolicy: Always
  Resources:
    Requests: CPU=28m, Memory=70Mi
    Limits: CPU=500m, Memory=256Mi

--- CHANGES DETECTED ---

Container 'nginx' changes:
  - Image: nginx:1.23 -> nginx:latest
  - CPU request: 25m -> 28m
  - Memory request: 60Mi -> 70Mi

--- REQUEST SOURCE ---
Username: system:serviceaccount:argocd:argocd-application-controller
Groups: system:serviceaccounts, system:serviceaccounts:argocd, system:authenticated