-
Notifications
You must be signed in to change notification settings - Fork 4
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
Auto-generate CRD docs and manifests #78
Conversation
588ee67
to
a47b098
Compare
700f965
to
af5201b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor thing...
42d9399
to
ebca42d
Compare
ebca42d
to
1100e95
Compare
1100e95
to
1393e82
Compare
Ok, after some forth-and-back, learning a bit more about actions in general and also toying with kustomize, here's the overhauled version of this PR and what it does:
|
Note: To test I did some small edit to the crd.yaml and manually triggered the |
I'm coming to this a bit late, but is there a reason not to have actual docs for amalthea on readthedocs? Seems like that would be the natural place rather than in the repo itself. I understand you also want to have rendered manifests so you can easily apply them, but I guess the primary motivation is the docs? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ableuler I have one minor change request.
Everything else looks good.
Am I right in my understanding that whenever we merge or push something (i.e. new code) into the main branch this will trigger and submit a PR to update the manifests and crd docs?
What happens if there are no changes to the relevant files (i.e. templates and crd)? Do we still get a PR that has a blank diff?
No, in this case the PR will be omitted entirely. |
I originally came from the documentation aspect, but I think it's generally nice to publish the manifests too. I also want to have docs on read-the-docs and I actually hope that at some point when crdsdev/doc#156 is fixed that we can stop hosting the rendered CRD docs entirely and just point to https://doc.crds.dev/github.com/SwissDataScienceCenter/amalthea. But for the moment I think having the CRD docs inside the repo has a benefit. |
This PR renders the helm chart into static manifests using a pre-commit hook and uses a github action to auto-generate a clickable markdown documentation of the custom resource. The manifests should probably be created in an action too instead of using the git hook...?