cloudnative-pg / charts

CloudNativePG Helm Charts
Apache License 2.0
137 stars 61 forks source link

poolers.postgresql.cnpg.io CRD metadata.annotations Too long #325

Open debugger24 opened 5 days ago

debugger24 commented 5 days ago

Unable to deploy helm chart using ArgoCD. Getting following error

Failed sync attempt to : one or more objects failed to apply, reason: CustomResourceDefinition.apiextensions.k8s.io "poolers.postgresql.cnpg.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
phisco commented 5 days ago

You need to set it to use server side apply iirc

pmontagna commented 3 days ago

Applied this change to ArgoCD Application and resolved the issue:

apiVersion: argoproj.io/v1alpha1 kind: Application spec: syncPolicy: syncOptions: - ServerSideApply=true