Skip to content
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 "-o url" to "kn service describe" and "kn revision describe" #907

Closed
rhuss opened this issue Jun 24, 2020 · 4 comments · Fixed by #916
Closed

Add "-o url" to "kn service describe" and "kn revision describe" #907

rhuss opened this issue Jun 24, 2020 · 4 comments · Fixed by #916
Assignees
Labels
good first issue Denotes an issue ready for a new contributor. kind/feature New feature or request
Milestone

Comments

@rhuss
Copy link
Contributor

rhuss commented Jun 24, 2020

Feature request

Having a dedicated command to only show the URL is very helpful in a scripted context so that one does not have to know the specifics of the Service schema to extract the URL via a jsonpath.

Use case

Retrieve the URL to process it further in a script.

UI Example

url=$(kn service describe myservice -o url)
@rhuss rhuss added the kind/feature New feature or request label Jun 24, 2020
@rhuss rhuss changed the title Add -o url to kn service describe and kn revision describe Add "-o url" to "kn service describe" and "kn revision describe" Jun 24, 2020
@navidshaikh
Copy link
Collaborator

/assign

@navidshaikh
Copy link
Collaborator

navidshaikh commented Jun 26, 2020

@rhuss : any particular use-case for revision describe -o urll ? like showing custom-URL if the revision has a tag?

@rhuss
Copy link
Contributor Author

rhuss commented Jun 26, 2020

maybe something like that. I haven't really thought about this but my its better to have a kn service describe --tag mytag -o url ? I just want to see the URL for a specific routed revision.

@navidshaikh navidshaikh removed their assignment Jul 1, 2020
@navidshaikh navidshaikh added the good first issue Denotes an issue ready for a new contributor. label Jul 1, 2020
@hemanrnjn
Copy link
Contributor

/assign

dsimansk added a commit to dsimansk/client that referenced this issue Dec 21, 2021
* [release-v0.26.0] Add kn-event-image to spec file

* Update openshift-serverless-clients.spec

Co-authored-by: Chris Suszynski <[email protected]>

* Update openshift-serverless-clients.spec

Co-authored-by: Chris Suszynski <[email protected]>

Co-authored-by: Chris Suszynski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor. kind/feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants