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 support for service url in svc describe output #916

Merged
merged 7 commits into from
Jul 7, 2020
Merged

Add support for service url in svc describe output #916

merged 7 commits into from
Jul 7, 2020

Conversation

hemanrnjn
Copy link
Contributor

@hemanrnjn hemanrnjn commented Jul 6, 2020

Description

Changes

  • Added Support for service url display in kn service describe as output format

Reference

Fixes #907

@knative-prow-robot knative-prow-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 6, 2020
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added the cla: no Indicates the PR's author has not signed the CLA. label Jul 6, 2020
Copy link
Contributor

@knative-prow-robot knative-prow-robot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hemanrnjn: 0 warnings.

In response to this:

Description

Changes

Reference

Fixes #

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.

@knative-prow-robot
Copy link
Contributor

Welcome @hemanrnjn! It looks like this is your first PR to knative/client 🎉

@knative-prow-robot
Copy link
Contributor

Hi @hemanrnjn. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@knative-prow-robot knative-prow-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 6, 2020
@navidshaikh
Copy link
Collaborator

/ok-to-test
/assign

@knative-prow-robot knative-prow-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 6, 2020
@hemanrnjn
Copy link
Contributor Author

@googlebot I consent

1 similar comment
@hemanrnjn
Copy link
Contributor Author

@googlebot I consent

@navidshaikh
Copy link
Collaborator

@googlebot rescan

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@hemanrnjn
Copy link
Contributor Author

@googlebot I fixed it.

@hemanrnjn
Copy link
Contributor Author

@googlebot rescan

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: yes Indicates the PR's author has signed the CLA. and removed cla: no Indicates the PR's author has not signed the CLA. labels Jul 6, 2020
@hemanrnjn hemanrnjn changed the title WIP: Add support for service url in svc describe output Add support for service url in svc describe output Jul 7, 2020
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 7, 2020
@hemanrnjn
Copy link
Contributor Author

/retest

Copy link
Contributor

@rhuss rhuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good to me !

Some minor requests:

  • Please add one line to the CHANGELOG.adoc describing the change.
  • I'm not sure if this is easy possible, but it would be awesome if we got get the new option value into kn service describe --help, too. Otherwise it's hard to find out for a user that this option exists. I'm aware that the machinery comes from a dependency, but maybe there's a hook into the help message ?

Co-authored-by: Matt Moore <[email protected]>
Copy link
Collaborator

@navidshaikh navidshaikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hemanrnjn : To add url to allowed formats in flag usage:

command.Flag("output").Usage = fmt.Sprintf("Output format one of %s.", strings.Join(append(machineReadablePrintFlags.AllowedFormats(), "url"), "|"))

Add after line 134 in pkg/kn/commands/service/describe.go.
You can also add a few command examples.

@knative-prow-robot knative-prow-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 7, 2020
@hemanrnjn
Copy link
Contributor Author

Thanks, looks good to me !

Some minor requests:

  • Please add one line to the CHANGELOG.adoc describing the change.
  • I'm not sure if this is easy possible, but it would be awesome if we got get the new option value into kn service describe --help, too. Otherwise it's hard to find out for a user that this option exists. I'm aware that the machinery comes from a dependency, but maybe there's a hook into the help message ?

Both changes done.

@hemanrnjn hemanrnjn closed this Jul 7, 2020
@hemanrnjn hemanrnjn reopened this Jul 7, 2020
@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-knative-client-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/kn/commands/service/describe.go 82.8% 83.3% 0.5

@hemanrnjn
Copy link
Contributor Author

/retest

1 similar comment
@hemanrnjn
Copy link
Contributor Author

/retest

Copy link
Collaborator

@navidshaikh navidshaikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

Thank you!

The tests should pass once #920 is in.

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 7, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hemanrnjn, navidshaikh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 7, 2020
@navidshaikh
Copy link
Collaborator

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "-o url" to "kn service describe" and "kn revision describe"
7 participants