argoproj / argo-cd

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

StatefulSet with volume claim causes diff with `ServerSideApply=true` on an ApplicationSet #18568

Open headyj opened 5 months ago

headyj commented 5 months ago

Describe the bug

Following this issue, the StatefulSet volume claim causes differences when using ApplicationSet. I already tried to add some specific ignore rules but it doesn't work:

[...]
  ignoreApplicationDifferences:
  - jqPathExpressions:
    - .spec.volumeClaimTemplates[]

To Reproduce

Difference should be ignored

Version

v2.11.3 (helm chart 7.1.2)

fatsolko commented 4 months ago

Also I got that diff without ServerSideApply=true image argoCD v2.11.3+3f344d5

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: someapp
  namespace: argocd
  finalizers:
    - resources-finalizer.argocd.argoproj.io
spec:
  project: default
  source:
    repoURL: 'https://gitlab.some.dev/infrastructure/helm/somechart.git'
    path: ./
    targetRevision: HEAD
    helm:
      valueFiles:
        - values-infra.yaml
  destination:
    server: 'https://kubernetes.default.svc'
    namespace: front
  syncPolicy:
    automated:
      prune: false
      selfHeal: false
denzhel commented 1 week ago

Any news about it ?