-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Add support to kubectl to describe API types and operations #3060
Comments
We could introduce kind as a rest resource, which also function as component plugin, with links to the swagger operations (or embedded them). May not be any value to the indirection, except it could solve both problems at the same time. Let me noodle it a bit.
|
maybe this can also be included in #5275 |
@xudifsd Yes, definitely. We just need to agree on the kubectl syntax, and it can target the existing swagger api. Changes to apiserver (kind resource, plugins, etc.) can be resolved later. @smarterclayton Did you noodle this at all? How about:
which would display the swagger for the operations on and
which would display the swagger for the schema for I could also imagine supporting jsonpath syntax to ask for the info for a specific field. |
Absolutely want this. I want a "list resources" with nice descriptions, then a describe that shows the data. Maybe we want to use "types"?
|
Also we really want to be able to put long descriptions on types themselves (paragraph long form even) and have that show up in swagger.
|
Filed #5331 re. documentation on types themselves. |
Hello I would like to submit a GSoC proposal for this subject. I believe that UX through documentation is very important especially in large and complex project like Kubernetes (even though that this issues is a P3). I have seen that there is a general kubectl roadmap and I am also aware that there is an other student that applies for improving #5275. I think that the roadmap is quite large for just one person to work all the issues, and maybe two students can split them equally to also increase the quality. Do you think that something like this would be acceptable? |
@andronat Thanks for your interest! I agree that the full roadmap is a lot of work. I'm not sure this issue is enough work on its own for a whole project, but I'll take a look at your proposal and provide feedback there. |
BTW, the prioritization doesn't imply that this is unimportant, only that we have lots of other issues that are even more important/urgent. :-) |
This came up in friction study -- people didn't want to read docs. Some help in kubectl to explain the main concepts would help. |
Here's the start of this for OpenShift openshift/origin#2914 I went for the straight simple approach for now - displaying a list of concrete paragraphs for each concept. Ultimately I think these are descriptions that should be present in the swagger doc (although for swagger there may be more paragraphs per resource, and certain concepts like Labels will have to live somewhere else). I'd also like to do searching and linux PAGER integration but that will wait for us. |
@bgrant0607 I am working on it and I'll report progress really soon |
This is exciting. Once kubectl can emit this, then one of us can make a gendocs that generates static docs from the kubectl output. |
The PR for this feature is at #12677. |
PR #12677 has been merged. I think this can be closed. |
Now that we have the swagger API, it would be useful to be able to query it and select parts to display, as part of help in kubectl.
Maybe something like:
/cc @smarterclayton @nikhiljindal @ghodss
The text was updated successfully, but these errors were encountered: