-
Notifications
You must be signed in to change notification settings - Fork 263
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
service get #48
Comments
/milestone v0.1.0 |
@csantanapr: You must be a member of the knative/knative-milestone-maintainers github team to set the milestone. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@csantanapr : what information about How does this defer from If we can list the data points to be provided by CLI for these two commands, it should help. |
I would like to suggest to combine
Wdyt ? If there are no objections, I'd like to start working on |
Another argument for having a single 'kn service get' for listing and showing is a typical ux flow:
So you can call 'kn service get', check the output, cursor up for one step back in shell history and then just add the service of interest to the end of the command. |
@rhuss downside to combining list and get is that i imagine output format would be quite different. list i imagine is more compact whereas get would show more detailed information. |
I like having different list and single-object describe commands. Get vs describe, no particluarly strong opinion about the single-object one, but I do like describe. |
@sixolet +1, I think too that we should distinguish between I think we could just rename
Wdyt ? Of course it depends how close we want to follow a UX like for kubectl. I think it would be good to stay close to its UX ( |
@cppforlife I'm not sure whether the output format should be different, if we want to keep the semantics of
|
As discussed in knative#48 this `kn service describe` as changed in this commit mimics `kubectl describe <sth>` as that it output detail information in human readable output. Summary information of a list of services or a single services as well as exporting the service in various formats (JSON, YAML) is reserved to `kn service list` (or `kn service get` as suggested to align with kubectl conventions). For this reason, the generic Printer handling from cli-runtime has been removed as `kn service describe` only outputs human readable format (that is btw also true for `kubectl` describe which does not allow for `-o` kind of options). The presented information is just a start and the full content should be discussed. I could imagine to add the following additional fields in the output: - Revisions overview (like image) - Traffic distribution - Timeout seconds - Conditions - Relevant Events (if any) - Annotations / Labels - Reference to configuration Surely there can be more, but I suggest to make this an iterative excercise.
I suggest #75 for the start of implementation for this issue with |
I think one thing I don't like about kubectl is the fact that
|
(I'm ok with implementing a single-target summary information printing command, but it should be different from the many-target summary-information printing command) |
For In that sense and for staying consistent, I tend to lean to keep the one and many information the same also for 'human readable' output for What would be a plus though would be to allow multiple and wildcard arguments for |
Done by #90 |
As discussed in knative#48 this `kn service describe` as changed in this commit mimics `kubectl describe <sth>` as that it output detail information in human readable output. Summary information of a list of services or a single services as well as exporting the service in various formats (JSON, YAML) is reserved to `kn service list` (or `kn service get` as suggested to align with kubectl conventions). For this reason, the generic Printer handling from cli-runtime has been removed as `kn service describe` only outputs human readable format (that is btw also true for `kubectl` describe which does not allow for `-o` kind of options). The presented information is just a start and the full content should be discussed. I could imagine to add the following additional fields in the output: - Revisions overview (like image) - Traffic distribution - Timeout seconds - Conditions - Relevant Events (if any) - Annotations / Labels - Reference to configuration Surely there can be more, but I suggest to make this an iterative excercise.
As discussed in knative#48 this `kn service describe` as changed in this commit mimics `kubectl describe <sth>` as that it output detail information in human readable output. Summary information of a list of services or a single services as well as exporting the service in various formats (JSON, YAML) is reserved to `kn service get` For this reason, the generic Printer handling from cli-runtime has been removed as `kn service describe` only outputs human readable format (that is btw also true for `kubectl` describe which does not allow for `-o` kind of options). This command shows information about the serivce itself, but also a summary about the associated revisions. "kn service describe" knows three modes, which can be combined: `--all` : Print more information. By default only are shorter summary is shown `--color` : Use a colorful output (but only when on a tty) `--hipster`: Experimental output mode for a very compact representation using emojis Of course there can be more and other information to be shown. Let's discuss and add this (and maybe remove the dense format)
As discussed in knative#48 this `kn service describe` as changed in this commit mimics `kubectl describe <sth>` as that it output detail information in human readable output. Summary information of a list of services or a single services as well as exporting the service in various formats (JSON, YAML) is reserved to `kn service get` For this reason, the generic Printer handling from cli-runtime has been removed as `kn service describe` only outputs human readable format (that is btw also true for `kubectl` describe which does not allow for `-o` kind of options). This command shows information about the serivce itself, but also a summary about the associated revisions. "kn service describe" knows three modes, which can be combined: `--all` : Print more information. By default only are shorter summary is shown `--color` : Use a colorful output (but only when on a tty) `--hipster`: Experimental output mode for a very compact representation using emojis Of course there can be more and other information to be shown. Let's discuss and add this (and maybe remove the dense format)
As discussed in knative#48 this `kn service describe` as changed in this commit mimics `kubectl describe <sth>` as that it output detail information in human readable output. Summary information of a list of services or a single services as well as exporting the service in various formats (JSON, YAML) is reserved to `kn service get` For this reason, the generic Printer handling from cli-runtime has been removed as `kn service describe` only outputs human readable format (that is btw also true for `kubectl` describe which does not allow for `-o` kind of options). This command shows information about the serivce itself, but also a summary about the associated revisions. "kn service describe" knows three modes, which can be combined: `--all` : Print more information. By default only are shorter summary is shown `--color` : Use a colorful output (but only when on a tty) `--hipster`: Experimental output mode for a very compact representation using emojis Of course there can be more and other information to be shown. Let's discuss and add this (and maybe remove the dense format)
implement
kn service get <service_name>
The text was updated successfully, but these errors were encountered: