-
Notifications
You must be signed in to change notification settings - Fork 597
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 SubscriptionsAPI filters to APIServerSource #7799
Conversation
|
Welcome @rh-hemartin! It looks like this is your first PR to knative/eventing 🎉 |
Hi @rh-hemartin. 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. |
ce970e9
to
0353280
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.
Can we create an e2e test similar to TestMTChannelBrokerNewTriggerFilters
func TestMTChannelBrokerNewTriggerFilters(t *testing.T) { |
Thanks @rh-hemartin, this is a really good PR |
I can't reply to your standalone comments, so I'm quoting you... I'm having trouble with the
How can I get the reconciler-test image uploaded and used? I tried with
|
0353280
to
107a20d
Compare
@rh-hemartin can you try running |
That is executed within |
@rh-hemartin can you paste the full logs you're getting? On which OS are you on? |
For this step:
can you instead run:
|
Hey! Getting all the logs together I think I found the problem, so thanks!
And I attached the full thing. I'm investigating this error and see if I can solve it... Edit: Specifying |
107a20d
to
8216e79
Compare
Hey, I will be away from my computer for three weeks, I will continue with this then. I'm now progressing on the e2e rekt test. I pushed the last changes, that included the run of |
I'm bumping the default version here knative-extensions/reconciler-test#708 |
8216e79
to
a699889
Compare
I created a rekt test similar to that, I had to introduce changes to some places, as the apiserversource template and new methods to convert filters to strings, extracted from the trigger test implementation. |
/ok-to-test |
a699889
to
3e296c0
Compare
/test reconciler-tests |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7799 +/- ##
==========================================
+ Coverage 69.22% 69.26% +0.03%
==========================================
Files 339 341 +2
Lines 19494 15846 -3648
==========================================
- Hits 13494 10975 -2519
+ Misses 5337 4199 -1138
- Partials 663 672 +9 ☔ View full report in Codecov by Sentry. |
3e296c0
to
df002e2
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.
This is looking great @rh-hemartin - just one small nit from my end
it looks like a flake /test reconciler-tests |
4fdb996
to
ce06ea2
Compare
@rh-hemartin with the switch to disabled by default the tests are now failing, we need to add a new config-features configmap for tests with the feature enabled here https://github.com/knative/eventing/tree/main/test/config |
ce06ea2
to
2663ce6
Compare
I did a copy of the features configmap from the production folder. That may impact more things than expected. That will need to be sync with the production configmap. Would it be better to create the configmap but just include this feature flag? Then the default values will come from the code instead, maybe it will be better from the sync perspective. What do you think? |
/test reconciler-tests |
This MR introduces the `filters` key in the APIServerSource Spec. This new field allows users to filter which messages are sent from the APIServerSource to the specified sink. The filter language is the new SubscriptionsAPI, that allows for powerful filtering. Signed-off-by: Hector Martinez <[email protected]>
2663ce6
to
52966bc
Compare
Let's start with this, I think this flag disabled by default will be soon (3 months until the next release) become enabled by default as the underlying library is already part of a beta feature, so we will remove the CM soon as well |
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
/approve
Thanks for the contribution @rh-hemartin !
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pierDipi, rh-hemartin 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 |
This MR introduces the
filters
key in the APIServerSource Spec. This new field allows users to filter which messages are sent from the APIServerSource to the specified sink. The filter language is the new SubscriptionsAPI, that allows for powerful filtering.broker/filter
package. The other option I considered was to move the whole thing to a new package but it looked more disruptive.Fixes #7791
Proposed Changes
Pre-review Checklist
Release Note
Docs
Docs #5916