Open ribbybibby opened 4 years ago
It would be nice if this bug will be fixed in the future. As it is still open since mid of last year I just want to say, that I experienced this strange behavior in v2.1.6 also.
It would be nice if this bug will be fixed in the future. As it is still open since mid of last year I just want to say, that I experienced this strange behavior in v2.1.6 also.
v2.3.4 - the bug is still there
Seeing this issue as well
V2.4.4 and the bug still exist
Hitting this as well with the ApiSix helm chart. Is there a way to workaround this issue?
Hitting this as well with the ApiSix helm chart. Is there a way to workaround this issue?
Try something like this in your Application...
ignoreDifferences:
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
jqPathExpressions:
- ..|.priority?
Really not the best, but this worked for me. You can make it much more specific, but I only have this for one specific application's CRD so no problem for me.
We have added the following key to the argocd-cm
ConfigMap. This ignores all additionalPrinterColumns
that have a priority of 0 for the whole ArgoCD instance:
resource.customizations.ignoreDifferences.apiextensions.k8s.io_CustomResourceDefinition: |
jqPathExpressions:
- .spec.versions[].additionalPrinterColumns[].priority | select(. == 0)
With this, you do not need Application-specific configuration, and priorities that are not 0 will be part of the diff, since these are not removed by the API server and should still be diffed.
We have added the following key to the
argocd-cm
ConfigMap. This ignores alladditionalPrinterColumns
that have a priority of 0 for the whole ArgoCD instance:resource.customizations.ignoreDifferences.apiextensions.k8s.io_CustomResourceDefinition: | jqPathExpressions: - .spec.versions[].additionalPrinterColumns[].priority | select(. == 0)
With this, you do not need Application-specific configuration, and priorities that are not 0 will be part of the diff, since these are not removed by the API server and should still be diffed.
Could you advise which part this config should be added to? There are only URL & oidc.config in my argocd-cm configmap
Describe the bug If the priority field of an
additionalPrinterColumns
item in a CRD is set to 0, it is stripped by the api server and therefore registers as a diff when trying to sync it with ArgoCD.To Reproduce
Sync this CRD with ArgoCD:
Expected behavior
I would expect no diff to be generated.
Of course I can ignore the differences for these fields, but then if the priority changes in future versions of the CRD, ArgoCD won't identify that as a legitimate diff.
Given that this is a standard field on a primitve resource, perhaps Argo should be able to handle this itself.
Version