You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2021/02/11 14:41:22 UTC

[GitHub] [lucene-solr-operator] zhuopeng opened a new issue #215: kubectl apply -f crds.yaml fails with metadata.annotations: Too long error

zhuopeng opened a new issue #215:
URL: https://github.com/apache/lucene-solr-operator/issues/215


   To reproduce
   `kubectl apply -f helm/solr-operator/crds/crds.yaml`
   
   getting error
   `customresourcedefinition.apiextensions.k8s.io/solrbackups.solr.bloomberg.com configured
   Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply
   customresourcedefinition.apiextensions.k8s.io/solrcollectionaliases.solr.bloomberg.com configured
   customresourcedefinition.apiextensions.k8s.io/solrcollections.solr.bloomberg.com configured
   customresourcedefinition.apiextensions.k8s.io/solrprometheusexporters.solr.bloomberg.com configured
   The CustomResourceDefinition "solrclouds.solr.bloomberg.com" is invalid: metadata.annotations: Too long: must have at most 262144 bytes`
   
   It happens for any version >0.2.6
   
   It is likely related to this https://github.com/kubernetes/kubectl/issues/712. When using kubectl apply to install CRD, kubectl apply use "last-applied-configuration" to store previous CRD configuration. And it exceed the limit. 
   
   
   
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene-solr-operator] HoustonPutman closed issue #215: kubectl apply -f crds.yaml fails with metadata.annotations: Too long error

Posted by GitBox <gi...@apache.org>.
HoustonPutman closed issue #215:
URL: https://github.com/apache/lucene-solr-operator/issues/215


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene-solr-operator] HoustonPutman commented on issue #215: kubectl apply -f crds.yaml fails with metadata.annotations: Too long error

Posted by GitBox <gi...@apache.org>.
HoustonPutman commented on issue #215:
URL: https://github.com/apache/lucene-solr-operator/issues/215#issuecomment-777622617


   Use `kubectl replace` instead, it's what we use in the Makefile now. For CRDs, `replace` is better than `apply`, even without the annotation.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org