-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc(volumes): add docs for attaching additional volumes #739
base: main
Are you sure you want to change the base?
Conversation
Thanks for the contribution. I'm not sure if "Data storage" is the best place to describe custom volume mounts as they are NOT used to store index data but configuration or backup. And When it comes to configuring Solr for backups, that is already covered by this documentation, for our managed backup feature, I think it will be confusing if we document a different approach as well: https://github.com/apache/solr-operator/tree/3cb870bd4d170390de829683ff4649f37e3a5658/docs/solr-backup |
@janhoy I'm happy to move this information and change the example to something like a ConfigMap. Is there anywhere we can add "extended docs/examples" though? I understand not wanting to confuse the main documentation, but this is not exactly vanilla K8s. These volume additions are actually part of the solrcloud CRD: In particular, that |
The The link you just provided refers to the custom I don't know where in the main |
Sorry, I mean to link https://github.com/apache/solr-operator/blob/main/config/crd/bases/solr.apache.org_solrclouds.yaml#L7869, which appears to very closely mimic the backup volume CRD. To your point, perhaps this volume example is one specific slice of a very long spec that is mostly just passed onto K8s after some loose adaptation. However, I think it's still a problem that I find myself reading source code here to figure this out. Does the CRD itself produce any output that is accesible from our docs? It seems to be quite well commented. |
I agree with janhoy that (as-is) this feels pretty similar to the existing docs/solr-backup/README.md content. But it'd be a great addition IMO if tweaked to overlap less with other backup docs (e.g. having the example use a config map, as suggested), and moved elsewhere. To that end - @mcarroll1 you asked earlier about a place for extended docs/examples: what do you think about moving this to be a yaml file under example/. YAML is a bit awkward maybe, but you can always put whatever explanatory prose you'd like as '#' comments. And it should assuage any concerns about complicating other doc passages. Is that a reasonable path forward? |
Thanks @gerlowskija! As suggested, I have moved this example to the example/ area and changed it to be a ConfigMap. |
So I like the additional example, but I also think the docs are useful. Maybe just don't include the example in the docs, and explain the top-level options, like the rest of the docs do. Something like: (hopefully better, this is just a start)
Maybe you can link to the example as well. In the |
Finally adding docs for this issue: #675. There appears to be another issue on this topic, so it makes sense to add this to the CRD docs. First time adding docs here, so please review for style, etc.