-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Api doc update #297
Api doc update #297
Conversation
[pkg/apis/authentication/v1beta1/register.go](https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/authentication/v1beta1/register.go); | ||
The register files must have a var called SchemeBuilder for the | ||
generated code to reference. There must be an AddToScheme method for | ||
the installer to reference. |
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.
Optional: suggest you add something like, "You can look at a group under pkg/apis/...
for example register.go files to use as a template, but do not copy the register.go files under pkg/api/...
--they are not general."
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.
agree based on my experiences. Do we have a blurb somewhere about the history of the api group definitions? It is my understanding that api/
is the old stuff and apis/
is the new stuff, but I don't have more specific information or understanding.
consider this an lgtm from me with or without my suggested change |
66b9b89
to
564a40c
Compare
[pkg/apis/authentication/v1beta1/register.go](../../pkg/apis/authentication/v1beta1/register.go); | ||
|
||
3. Add a pkg/apis/`<group>`/install/install.go, which is responsible for adding | ||
the group to the `latest` package, so that other packages can access the group's |
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.
Having written an api group recently, I have no idea what this latest
and latest.Group
text is talking about.
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.
It turned into the registered package.
564a40c
to
87821cf
Compare
@lavalamp your text included. Additional text and changes in further sections. |
modified by a controller, the status field can be left off and the fields inside | ||
the `Spec` can be inlined directly into the struct. | ||
|
||
For each type there should also be a `List` struct. The `List` struct should |
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.
Nit: I would qualify with "top-level type".
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.
@lavalamp agree. done.
lgtm if you fix that nit. |
87821cf
to
19daa8a
Compare
Thanks a bunch! |
@lavalamp Thanks for feedback. I'll be around soon with an apiserver specific change. |
If you are joining the org, please fill out the template below: - [x] I have reviewed the community membership guidelines - [x] I have reviewed the contribution guidelines - [x] I have enabled 2FA on my GitHub account - [x] I have joined the Istio discussion board and subscribed to the Contributors category - [x] I have joined Istio's Slack workspace (fill-out this form to join) List your company name, or indicate Individual if you're not affiliated with a company: IBM Provide a link to at least one PR that you have successfully pushed to one of the Istio repos: istio/istio.io#22051 (Merged)
This is some small updates that are complete as it is. I can turn it into a long running WIP, but I'd rather we focus on small incremental additions for now.
@pmorie @deads2k @lavalamp Is
apis/authentication
still a good base to template off of for newcomers?