-
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
Don't Display kn --help message with Plugin Errors #910
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.
@danielhelfand: 0 warnings.
In response to this:
Description
This pull request removes the
kn --help
message with a plugin error as detailed in #904.Changes
- Use a boolean
pluginErr
inmain.go
to determine whether to print an- Add e2e test in
plugin_test.go
to 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. 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. |
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.
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
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
71fc2bc
to
9481c81
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.
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 --help
message with a plugin error as detailed in #904.Changes
pluginErr
inmain.go
to determine whether to print anplugin_test.go
to verify error message isn't presentReference
Fixes #904
/lint