-
Notifications
You must be signed in to change notification settings - Fork 139
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
Adding support for func subscribe
for creating mutiple triggers, based on event filters
#2001
Conversation
@matzew: The label(s) In response to this:
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. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2001 +/- ##
==========================================
+ Coverage 63.62% 64.47% +0.85%
==========================================
Files 107 108 +1
Lines 13705 13839 +134
==========================================
+ Hits 8720 8923 +203
+ Misses 4129 4026 -103
- Partials 856 890 +34
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
Looking good so far!
You'll also want to run goimports to resolve the linter error, and run make
to get the updated schema file 👍🏻
479723f
to
365bb02
Compare
func subscribe
for creating mutiple triggers, ba…func subscribe
for creating mutiple triggers, based on event filters
/hold the filtering needs to be a bit different |
Hi @matzew . If possible, could you add some test pls? |
555d90e
to
1b85459
Compare
We do install Eventing in our test cluster, so an integration test in https://github.com/knative/func/blob/main/pkg/functions/client_int_test.go might be fairly straightforward |
5280d74
to
cbbac15
Compare
a3f81a7
to
0855979
Compare
0855979
to
1f685de
Compare
/unhold |
…sed on event filters Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
Co-authored-by: Luke Kingland <luke@lukekingland.com>
Co-authored-by: Luke Kingland <luke@lukekingland.com>
Co-authored-by: Luke Kingland <luke@lukekingland.com>
Co-authored-by: Luke Kingland <luke@lukekingland.com>
Co-authored-by: Luke Kingland <luke@lukekingland.com>
Co-authored-by: Luke Kingland <luke@lukekingland.com>
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
a4b5e99
to
810a003
Compare
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
5774349
to
c30a5c4
Compare
@@ -76,6 +76,7 @@ Learn more about Knative at: https://knative.dev`, cfg.Name), | |||
NewDeployCmd(newClient), | |||
NewDeleteCmd(newClient), | |||
NewListCmd(newClient), | |||
NewSubscribeCmd(), |
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.
For testing support, this should pass through the newClient
client factory; but I don't think that should hold up the PR.
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.
I will add additional PR. thanks for the review on this
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lkingland, matzew 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 |
…sed on event filters (knative#2001) * Adding support for `func subscribe` for creating mutiple triggers, based on event filters Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> * Update cmd/subscribe.go Co-authored-by: Luke Kingland <luke@lukekingland.com> * Update cmd/subscribe.go Co-authored-by: Luke Kingland <luke@lukekingland.com> * Update cmd/subscribe.go Co-authored-by: Luke Kingland <luke@lukekingland.com> * Update cmd/subscribe.go Co-authored-by: Luke Kingland <luke@lukekingland.com> * Update cmd/subscribe.go Co-authored-by: Luke Kingland <luke@lukekingland.com> * Update cmd/subscribe.go Co-authored-by: Luke Kingland <luke@lukekingland.com> * removing unused import Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> * running make Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> * Some import ogranization Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> * Change argument syntax Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> * changes Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> * Adding some emoji text Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> * 💄 move subscriptions underneath the deploy element Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> * adding silly emoji to build Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> * Adding some simple/copied/modified test Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> * Running 'make schema-generate' Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> * Update function Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> * Little unit test Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> * Adding a bit more help text Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> * misspell instruction Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> --------- Signed-off-by: Matthias Wessendorf <mwessend@redhat.com> Co-authored-by: Luke Kingland <luke@lukekingland.com>
Little demo: https://youtu.be/O6M7mfR6JfM
Changes
subscribe
command to create Knative Triggers for event routing/kind
Fixes #
Release Note
Docs