-
-
Notifications
You must be signed in to change notification settings - Fork 13
Spike: generating a CRD reference #238
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
Comments
Update: Sebastian found this: https://github.com/crdsdev/doc I.e.: https://doc.crds.dev/github.com/stackabletech/[email protected] |
This looks pretty good. This probably also means we should improve our documentation on the exposed structs? |
It does look nice. Not sure how we'd integrate it with the docs, but maybe it can just be visually distinct, it doesn't matter. We can give it the stackable colorscheme though. Yes, we'd need to make the docs nicer :D Once thing that it doesn't do but that would be cool is factoring out common elements. I.e. the opa configuration or an S3 connection, that's a common fragment that would only need to be documented once. But I think that can only be seen in the rust code. |
We should do that regardless of that, but yes in that case most notably ;) |
I think it would be nice to use this for our docs, I'm making a new ticket for it though, because this one has gotten a bit messy. |
Many operators are missing a CRD reference for the ProductCluster resource. Instead of manually creating it and having to maintain it, it would be nice if it was possible to generate it from the rust code/the generated CRD files.
This should be spiked for one operator and then put into the templating if possible.
Tested tools
object
.I noticed that if I generate docs for i.e. the DruidCluster, it also generates the docs for all the embedded types, i.e. the S3Resource. I think those should be documented separately.
Conclusion
Good documentation cannot be generated from the CRD file, as a lot of information is missing from it. The one tool that generates nice docs uses the underlying source files as a basis for the docs. This only works with go files.
There is no good tool to do this at the moment.
My preferred solution would be something that integrates with the rust code, like the go solution. That seems way more work than initially thought though.
The config I used for the CRD docs generator:
The text was updated successfully, but these errors were encountered: