-
Notifications
You must be signed in to change notification settings - Fork 113
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
fix: Add Markers and Move Comments for API Docs #1802
fix: Add Markers and Move Comments for API Docs #1802
Conversation
Update our code comment markers and copyright notice placement so that the elastic/crd-ref-docs tool can generate API reference docs: - Add `kubebuilder:object:root=true` marker for root CRD types. The crd-ref-docs tool looks for these to identify new `Kind` APIs. - Move copyright comments so they are not mistaken for package-level docs. Note - this only applies to the `v1beta1` API. Signed-off-by: Adam Kaplan <[email protected]>
// Package v1beta1 contains API Schema definitions for the build v1beta1 API group | ||
// +k8s:deepcopy-gen=package,register | ||
// +groupName=shipwright.io |
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 honestly do not fully know what those annotations are for, but as you had not specifically mentioned it, I'd like to make sure this was intentionally removed.
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.
Yes, this was intentionally removed. The markers are duplicated in doc.go
, and I verified that removing this didn't change how the CRDs were generated.
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.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SaschaSchwarze0 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 |
Changes
Update our code comment markers and copyright notice placement so that the elastic/crd-ref-docs tool can generate API reference docs:
kubebuilder:object:root=true
marker for root CRD types. The crd-ref-docs tool looks for these to identify newKind
APIs.Note - this only applies to the
v1beta1
API.Needed for shipwright-io/website#147
/kind cleanup
Submitter Checklist
See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.
Release Notes