helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

InfluxDB Clustered 3 - appinstances.kubecfg.dev CRD inclusion of empty arrays causes ArgoCD to behave as if the CRD is out of sync

Open bryantidd opened this issue 11 months ago • 1 comments

In the appinstances.kubecfg.dev CRD there are three empty arrays, at lines 8, 11, and 15. When using ArgoCD to install InfluxDB Clustered 3, the CRD is always considered out of sync because the applied CRD will not have the empty arrays.

This makes InfluxDB 3 seem misconfigured or out of sync with it's gitops codebase.

bryantidd avatar Jan 13 '25 22:01 bryantidd

Hi, I had the same issue. You can fix it in ArgoCD by adding ignoreDifferences values. Here is my fix :

ignoreDifferences:
  - group: apiextensions.k8s.io
    kind: CustomResourceDefinition
    name: appinstances.kubecfg.dev
    jsonPointers:
      - /spec/names/categories
      - /spec/names/shortNames
      - /spec/versions/0/name
      - /spec/versions/0/additionalPrinterColumns

SamLoub avatar Feb 24 '25 08:02 SamLoub