projectsyn / component-prometheus

Commodore component to wrap kube-prometheus jsonnet library.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Configure ArgoCD to use `Replace=true` to apply CRDs #58

Closed simu closed 2 years ago

simu commented 2 years ago

Fixes #57

Checklist

bastjan commented 2 years ago

I guess this is fine because we re-apply the CRDs anyway from ArgoCD? Might be fine https://github.com/argoproj/argo-cd/issues/5704#issuecomment-808355897

simu commented 2 years ago

I guess this is fine because we re-apply the CRDs anyway from ArgoCD? Might be fine argoproj/argo-cd#5704 (comment)

Reading through the linked issues, ArgoCD won't actually replace the CRD resources unless you choose "Force" for a manual sync, see https://github.com/argoproj/gitops-engine/pull/252. We should probably migrate this to use server-side apply once we've upgraded to ArgoCD v2.5 (cf. https://github.com/argoproj/argo-cd/issues/820#issuecomment-1246960210)