-
Notifications
You must be signed in to change notification settings - Fork 246
Add CRD API Documentation #506
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
Conversation
The hack/gen-api.sh script can be used to generate the documentation. The configuration used by the tool is found in the hack/gen-api.json file. Signed-off-by: Ivan Sim <[email protected]>
Welcome @ihcsim! |
/assign |
/release-note-none |
/assign @jingxu97 |
Signed-off-by: Ivan Sim <[email protected]>
@xing-yang I added a new section called "API Reference", with "Volume Snapshot" as its subsection. This should allow us to extend the list in the future to include other CRDs/APIs. All the |
book/src/api/volume-snapshot.md
Outdated
Exactly one of its members must be set. | ||
Members in VolumeSnapshotContentSource are immutable. | ||
TODO(xiangqian): Add a webhook to ensure that VolumeSnapshotContentSource members | ||
will be immutable once specified.</p> |
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.
Can you submit a PR in external-snapshotter to get rid of this TODO message? It is no longer needed.
https://github.com/kubernetes-csi/external-snapshotter/blob/master/client/apis/volumesnapshot/v1/types.go#L344-L345
After that, re-run the script to generate the doc.
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.
I opened the PR at kubernetes-csi/external-snapshotter#697.
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.
@xing-yang I have re-generated the doc to include the changes in kubernetes-csi/external-snapshotter@b20011c. PTAL.
Signed-off-by: Ivan Sim <[email protected]>
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ihcsim, xing-yang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR adds the CRD API documentation to the doc site. It introduces a new script named
hack/gen-api.sh
that uses the gen-crd-api-reference-docs tool to parse the CRD Go types found in the external-snapshotter repository, and writes the generated documentation to thebook/src/api.md
file.Fix kubernetes-csi/external-snapshotter#102.
Test output: