Don't Display kn --help message with Plugin Errors#910
Don't Display kn --help message with Plugin Errors#910danielhelfand wants to merge 2 commits intoknative:masterfrom
Conversation
knative-prow-robot
left a comment
There was a problem hiding this comment.
@danielhelfand: 0 warnings.
Details
In response to this:
Description
This pull request removes the
kn --helpmessage with a plugin error as detailed in #904.Changes
- Use a boolean
pluginErrinmain.goto determine whether to print an- Add e2e test in
plugin_test.goto verify error message isn't presentReference
Fixes #904
/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.
|
Hi @danielhelfand. 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. DetailsInstructions 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. |
maximilien
left a comment
There was a problem hiding this comment.
Nice. I was seeing this today. Thanks for the contribution. Cheers.
/ok-to-test
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danielhelfand, maximilien 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 |
71fc2bc to
9481c81
Compare
rhuss
left a comment
There was a problem hiding this comment.
Thanks, but please don't use global state variables as this will lead to hard understand spaghetti code (because of the non-local nature of global variables). See a suggestion how to improve this below in the comments.
Please note also that in the future we might want to re-add that line for plugins as a plugin is supposed to support a --help flag, too (and plugins will be listed along regular commands with kn --help in an extra section, as this is what the user does when looking for usage help).
|
The following is the coverage report on the affected files.
|
Sure, if you would like to place a hold on this to discuss whether this is worthwhile to introduce, no issue with me. |
|
/test pull-knative-client-integration-tests |
|
/retest Error: ReconcileIngressFailed: Ingress reconciliation failed |
|
@danielhelfand thanks ! I hope to get the plugin help message for 0.16.0 which will be released in two weeks. So let's hold the PR for a moment and resolve the issue while adding plugins to the --help message. |
/hold No worries! Sounds good. |
|
@danielhelfand : Added the fix to #929 so closing this PR for now. Thanks ! |
Align the default sender image to one promoted by OpenShift CI. This aligns defaults with openshift-knative/serverless-operator#1337 Further refs.: - openshift/release#24476 - openshift/release#24549
* Allow overriding of build.sh for downstream projects (knative#1544) * Adding override script for kn-plugin-event (knative#910) * Embed event plugin (knative#905)
Description
This pull request removes the
kn --helpmessage with a plugin error as detailed in #904.Changes
pluginErrinmain.goto determine whether to print anplugin_test.goto verify error message isn't presentReference
Fixes #904
/lint