-
Notifications
You must be signed in to change notification settings - Fork 39.3k
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
Umbrella: Improvements to API documentation #19680
Comments
Thanks @tonybaloney. I'll send fixes next week. |
@bgrant0607, I don't think this affects if the fields of What's our convention for fields that "one of the fields needs to be specified", like this one? Shall we mark both as not required? |
We have to mark them both as optional. AFAIK we have no real way to denote
|
Also ref: #17404, #17362, #16873, #16550, #16095, #16049, #15910, #15741, #15244, #15128, #14924, #14189, #11933, #11567, #11468, #11332, #11000, #10710, kubernetes/website#38572, #9097, #8528, #6167, #6145, #4934, #4931, #4700, #3714, #3606, #2971, #1963, kubernetes/website#34935, #22904, #22389, #23303, #29681 |
Another problem is that we use the same Pod model for different operations like create and update and the validations for both are different. |
Need to replace out-of-date design docs and proposals: #22797 |
Example API documentation needed: content type: #22904 |
Another issue: example value for each field |
The Elasticsearch API documentation is worth a look as an example. I especially appreciate that it's easy to switch between versions for a given page, e.g. here's the cluster page for version 1.5. At the top of the page is a clear message saying it's an old version and giving a link to the current. On the right is a drop-down making it trivial to switch to other versions of those docs. Also worth noting is that every section has an "edit" icon inviting readers to correct mistakes (via github edit workflow). |
I don't remember whether it is specifically mentioned somewhere else, but we need a developer-facing version of: |
@bgrant0607 |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/lifecycle frozen |
Following #19680 (comment) I've logged issue #89094 |
@thockin this issue is getting a little old :-) Should I close it? |
/wg api-expression |
I think this issue is worth keeping. However, @tonybaloney, perhaps you'd be willing to update the issue description to account for the changes / improvements / regressions since you opened it? |
I think it's still a real issue |
the public API documentation on kubernetes.io is very challenging to understand compared with projects like Docker, OpenStack.
The first and most challenging issue is that all of the API operations
are listed on one massive page, there isn't any grouping or index. I
have to use the browser find to search within the page and guess what
I'm looking for.
The second issue is that the docs are automatically generated so a lot
of the descriptions are not helpful, for example "proxy PUT requests
to Pod" : PUT /api/v1/proxy/namespaces/{namespace}/pods/{name} - I
have no idea what this does or what it is supposed to do.
Third issue is that the models 'required' for each of the fields are
not entirely correct. I was trying to create a pod. The docs say :
http://kubernetes.io/v1.1/docs/api-reference/v1/definitions.html#_v1_pod
that a pod spec is required, but none of the fields are required.
The API returns and gives an error saying fields are missing. I had to
use trial and error to discover which fields are required at a minimum
(turns out, metadata.name, containers[0].name and
containers[0].image).
@caesarxuchao
@brendandburns
@bgrant0607
The text was updated successfully, but these errors were encountered: