-
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
Implement human readable output for kn route describe #643
Implement human readable output for kn route describe #643
Conversation
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.
@navidshaikh: 1 warning.
In response to this:
/lint
Fixes #205
Proposed Changes
- Keeps the machine readable output
- Align the command description text
- Add simple e2e test in basic workflow test
Default output:
➜ client git:(pr/describe-route) ./kn route describe foo Name: foo Namespace: default Age: 1d URL: http://foo.default.example.com Owner References: Service: foo Traffic Targets: 60% foo-tcvhr-4 40% foo-rnlnj-3 #v3 URL: http://v3-foo.default.example.com Conditions: OK TYPE AGE REASON ++ Ready 1d ++ AllTrafficAssigned 1d ++ IngressReady 1d
Verbose output:
➜ client git:(pr/describe-route) ./kn route describe svc -v Name: svc Namespace: default Labels: serving.knative.dev/service=svc Annotations: serving.knative.dev/creator=minikube-user serving.knative.dev/lastModifier=minikube-user Age: 1d URL: http://svc.default.example.com Owner References: Service: svc (serving.knative.dev/v1alpha1) Traffic Targets: 100% @latest (svc-qxdyq-5) Conditions: OK TYPE AGE REASON ++ Ready 1d ++ AllTrafficAssigned 1d ++ IngressReady 1d
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.
fdf798c
to
5208fee
Compare
/lint |
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.
@navidshaikh: 0 warnings.
In response to this:
/lint
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.
@navidshaikh there's a compile error:
|
5208fee
to
67f7e49
Compare
The flaky test should be fixed with #644 |
/retest |
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.
looks good (as always ;-) but I would not output an owner reference in general: Print out a service if attached or nothing (see inline).
Otherwise, some minor nits.
/retest |
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maximilien, 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 |
- Keeps the machine readable output - Align the command description text, check for single argument, reported error messages and unit tests in service, revision, route, source binding describe commands
20e77bf
to
3bf2396
Compare
3bf2396
to
0878b23
Compare
/retest |
/retest boskos |
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.
looks good to me with a minor question whether to alway sprint a "Service"
/retest |
The following is the coverage report on the affected files.
|
/retest |
1 similar comment
/retest |
thanks ! /lgtm |
/lint
Fixes #205
Proposed Changes
Default output:
Verbose output: