-
Notifications
You must be signed in to change notification settings - Fork 261
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
fix(trigger): Make --filter flag truly optional #745
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.
@dsimansk: 0 warnings.
In response to this:
Description
Fix issue with
kn trigger create
that always required--filter
flag.Changes
TriggerBuilder
adds only empty Spec.Filter for empty or nil arrays- The above should also allow builder to be used to clean up existing filters
kn trigger describe
doesn't print empty FilterReference
Fixes #744
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.
Does it make sense to omit filter in Current change in this PR is omitting the filter:
|
The following is the coverage report on the affected files.
|
/test pull-knative-client-integration-tests
|
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!
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dsimansk, rhuss 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 |
* fix(trigger): Make --filter flag truly optional * fix(trigger): Update trigger docs * chore: Update changelog
* fix(trigger): Make --filter flag truly optional (#745) * fix(trigger): Make --filter flag truly optional * fix(trigger): Update trigger docs * chore: Update changelog * fix(trigger): Fix filter delete for trigger update (#746) * chore: Update changelog * Fix plugin execution for Windows (#738) Fixes #737 * Use exec.Command instend of syscall.Exec for windows. * Fix a bug in plugin handler test when running it on windows. * Fix typo. * fix: Fix default config path on Windows (#752) Co-authored-by: Lv Jiawei <lvjiawei@cmss.chinamobile.com>
Description
Fix issue with
kn trigger create
that always required--filter
flag.Changes
TriggerBuilder
adds only empty Spec.Filter for empty or nil arrayskn trigger describe
doesn't print empty FilterReference
Fixes #744