-
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
Add machine readable output for trigger #1121
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.
@arghya88: 0 warnings.
In response to this:
Signed-off-by: Arghya Sadhu [email protected]
Description
Changes
*Add machine readable output (-o flag) to kn trigger describe
Reference
Fixes #1095
/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 any idea why the test for
|
@arghya88 : The genericclioptions util we use to enable the machine readable output, requires GroupVersionKind set on the object. You need to update GroupVersionKind of the object you For example: here its done for the list object of trigger and each individual items in the list. For here is another example of setting GVK for service object we client/pkg/serving/v1/client.go Line 193 in 1012890
|
d767447
to
2c6a635
Compare
3e60bb0
to
c66054d
Compare
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.
Please run ./hack/build.sh
and commit
📖 Docs ERROR: Modified files found: M docs/cmd/kn_trigger_describe.md ERROR: Diff diff --git a/docs/cmd/kn_trigger_describe.md b/docs/cmd/kn_trigger_describe.md index 3884b35b..bdc194a7 100644 --- a/docs/cmd/kn_trigger_describe.md +++ b/docs/cmd/kn_trigger_describe.md @@ -19,9 +19,6 @@ kn trigger describe NAME # Describe a trigger 'my-trigger' in YAML format kn trigger describe my-trigger -o yaml - - # Print only trigger URL - kn trigger describe my-trigger -o url ``` ### Options ERROR: /home/prow/go/src/knative.dev/client is out of date. Please run ./hack/build.sh -c and commit.
--
25812a7
to
0e87ded
Compare
@navidshaikh tests are passing now.PTAL |
/assign @navidshaikh |
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, lets fix the typo in CHANGELOG and this should be good to go.
0de5158
to
deca7f1
Compare
@navidshaikh Changes done.PTAL |
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.
@arghya88 : The CI failure needs a fix in eventing nightly setup, see knative/hack#24 I will retest once its merged/fixed. Meanwhile can you please fix the CHANGELOG as suggested below?
deca7f1
to
3f0797e
Compare
Signed-off-by: Arghya Sadhu <[email protected]>
3f0797e
to
84588a7
Compare
The following is the coverage report on the affected files.
|
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.
/retest
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: arghya88, 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 |
Signed-off-by: Arghya Sadhu [email protected]
Description
Changes
*Add machine readable output (-o flag) to kn trigger describe
Reference
Fixes #1095
/lint