dc-tec / k8s-gitops

Kubernetes GitOps repository for my homelab
1 stars 0 forks source link

patch: cnpg argocd application sync options #22

Closed dc-tec closed 3 months ago

dc-tec commented 3 months ago

The following error is observed when deploying Cloudnative PG using ArgoCD without any syncOptions configured:

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. Retrying attempt #5 at 8:19PM.

Setting syncOptions to Replace=true ensures that ArgoCD uses kubectl replace instead of kubectl create when deploying resources.

See also: Docs