janhoy opened a new issue #410: URL: https://github.com/apache/solr-operator/issues/410
When deploying Solr-Operator in [ArgoCD](https://argo-cd.readthedocs.io/en/stable/) using its Helm chart, you may get this error message: > reason: CustomResourceDefinition.apiextensions.k8s.io "solrclouds.solr.apache.org" is invalid: metadata.annotations: Too long: must have at most 262144 bytes This is since ArgoCD uses `kubectl apply` by default, which then overflows some buffer. Explanation here: https://argo-cd.readthedocs.io/en/stable/user-guide/sync-options/#replace-resource-instead-of-applying-changes The same does not happen during normal `helm install` since Helm uses another method of installing CRDs. This is not a bug in solr-operator, but there seems to be a very simple workaround, by adding this annotation to all our CRDs: ```yaml metadata: annotations: argocd.argoproj.io/sync-options: Replace=true ``` This will tell Argo to use `kubectl replace` instead of apply, circumventing this limitation. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org