-
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
Fix service/revision list output with '-o' param #1276
Fix service/revision list output with '-o' param #1276
Conversation
Signed-off-by: Yevhen Vydolob <[email protected]>
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 What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@evidolob: 0 warnings.
In response to this:
Description
This PR fixes behaviour of
service list -o <format>
andrevision list -o <format>
command in case when there are no services/revisions:$ ./kn service list -o json { "apiVersion": "serving.knative.dev/v1", "items": [], "kind": "ServiceList" }
Changes
revision/list.go
now checks-o
option before typeNo revisions found.
service/list.go
now checks-o
option before typeNo services found.
Reference
Fixes #1273
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.
Welcome @evidolob! It looks like this is your first PR to knative/client 🎉 |
Hi @evidolob. 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 Once the patch is verified, the new status will be reflected by the 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. |
Thanks! |
Signed-off-by: Yevhen Vydolob <[email protected]>
Signed-off-by: Yevhen Vydolob <[email protected]>
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 What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
This fix covers @rhuss @navidshaikh should we tackle it at once? Or creating another issue would be sufficient? |
…-revision-list � Conflicts: � CHANGELOG.adoc
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 What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
/approve
Thanks for the contribution
@evidolob you might need to sign the CLA... see @google-cla bot message above |
@googlebot I signed it! |
@dsimansk I can handle all |
If you don't mind the extra work, please go ahead. IMO it'd be better to align the listing output for every command. |
Signed-off-by: Yevhen Vydolob <[email protected]>
/retest |
2 similar comments
/retest |
/retest |
The tests are currently failing, so we can't include this PR for 0.22. However as this is a fix, we can quickly release a 0.22.1 afterwards when the e2e test issue is fixed. |
/hold |
Signed-off-by: Yevhen Vydolob <[email protected]>
/retest |
1 similar comment
/retest |
…-revision-list � Conflicts: � CHANGELOG.adoc
Signed-off-by: Yevhen Vydolob <[email protected]>
/retest |
1 similar comment
/retest |
Signed-off-by: Yevhen Vydolob <[email protected]>
/retest |
Signed-off-by: Yevhen Vydolob <[email protected]>
Signed-off-by: Yevhen Vydolob <[email protected]>
The following is the coverage report on the affected files.
|
/retest |
@evidolob thanks! I've gone through the PR and it covers all list commands. Except the newly added /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dsimansk, maximilien 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 |
Description
This PR fixes behaviour of
service list -o <format>
andrevision list -o <format>
command in case when there are no services/revisions:Changes
revision/list.go
now checks-o
option before typeNo revisions found.
service/list.go
now checks-o
option before typeNo services found.
Reference
Fixes #1273