Implement human readable output for kn route describe#643
Implement human readable output for kn route describe#643knative-prow-robot merged 4 commits intoknative:masterfrom
Conversation
knative-prow-robot
left a comment
There was a problem hiding this comment.
@navidshaikh: 1 warning.
Details
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 1dVerbose 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 |
knative-prow-robot
left a comment
There was a problem hiding this comment.
@navidshaikh: 0 warnings.
Details
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 |
rhuss
left a comment
There was a problem hiding this comment.
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 |
|
[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 DetailsNeeds 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 |
rhuss
left a comment
There was a problem hiding this comment.
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 |
This PR contains the following updates: | Package | Change | Notes | |---|---|---| | quay.io/konflux-ci/tekton-catalog/task-build-image-index | `4d5ab47` -> `70f2fe8` | | | quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta | `57a4a8b` -> `b9e9209` | | | quay.io/konflux-ci/tekton-catalog/task-clair-scan | `712afcf` -> `7c73e2b` | | | quay.io/konflux-ci/tekton-catalog/task-clamav-scan | `62c835a` -> `11b1684` | | | quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check | `5d63b92` -> `eb8136b` | | | quay.io/konflux-ci/tekton-catalog/task-git-clone-oci-ta | `88367f7` -> `0761f97` | | | quay.io/konflux-ci/tekton-catalog/task-init | `38660e6` -> `aac8127` | | | quay.io/konflux-ci/tekton-catalog/task-push-dockerfile-oci-ta | `6ad0ae8` -> `c4f87c4` | | | quay.io/konflux-ci/tekton-catalog/task-sast-shell-check-oci-ta | `a591675` -> `57b3262` | | | quay.io/konflux-ci/tekton-catalog/task-sast-snyk-check-oci-ta | `0.3` -> `0.4` | :warning:[migration](https://redirect.github.com/redhat-appstudio/build-definitions/blob/main/task/sast-snyk-check-oci-ta/0.4/MIGRATION.md):warning: | | quay.io/konflux-ci/tekton-catalog/task-sast-unicode-check-oci-ta | `0.1` -> `0.2` | :warning:[migration](https://redirect.github.com/redhat-appstudio/build-definitions/blob/main/task/sast-unicode-check-oci-ta/0.2/MIGRATION.md):warning: | | quay.io/konflux-ci/tekton-catalog/task-source-build-oci-ta | `f0e6c6f` -> `82d5951` | | --- ### Configuration 📅 **Schedule**: Branch creation - "after 5am on saturday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- To execute skipped test pipelines write comment `/ok-to-test`. This PR has been generated by [MintMaker](https://redirect.github.com/konflux-ci/mintmaker) (powered by [Renovate Bot](https://redirect.github.com/renovatebot/renovate)). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNTguMC1ycG0iLCJ1cGRhdGVkSW5WZXIiOiIzOS4xNTguMC1ycG0iLCJ0YXJnZXRCcmFuY2giOiJyZWxlYXNlLXYxLjE2IiwibGFiZWxzIjpbXX0=--> Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com> Co-authored-by: red-hat-konflux-kflux-prd-rh02[bot] <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
/lint
Fixes #205
Proposed Changes
Default output:
Verbose output: