Conversation
|
Welcome @d3akhtar! It looks like this is your first PR to knative/eventing 🎉 |
|
Hi @d3akhtar. 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-sigs/prow repository. |
|
/ok-to-test |
| return false, errors.New("correlationId Format: <original id>:<base64/hex encoded encrypted id>") | ||
| } | ||
|
|
||
| slice := strings.Split(correlationId, ":") |
| }, | ||
| ) | ||
|
|
||
| ceruntime.AddFunction(correlationIdFilterFunction) |
There was a problem hiding this comment.
I might add this to the runtime somewhere else, since this will be called to make a new CESQL expression as well. The function is doing a bit too much. There should be 2 functions:
- Make and add the CESQL function
- Parse the CESQL expression into a filter
| if err != nil { | ||
| return nil, err | ||
| } | ||
| secrets, err := clientset.CoreV1().Secrets("default").List(context.Background(), metav1.ListOptions{}) |
There was a problem hiding this comment.
Probably need to configure:
- which namespace to look up secrets in
- which secret names to get
|
@pierDipi How can I use the injected fake kubeclient to create secrets to test my code on? Right now, if I try the tests, I get this error. panic: Unable to fetch k8s.io/client-go/kubernetes.Interface from context. This context is not the application context (which is typically given to constructors via sharedmain). |
pkg/eventfilter/subscriptionsapi/cesql_correlationid_filter_test.go
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8360 +/- ##
==========================================
- Coverage 64.09% 62.75% -1.34%
==========================================
Files 388 396 +8
Lines 23365 24158 +793
==========================================
+ Hits 14975 15160 +185
- Misses 7593 8183 +590
- Partials 797 815 +18 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…QLCorrelationIdFilter
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: d3akhtar The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
This Pull Request is stale because it has been open for 90 days with |
Fixes #8318
Proposed Changes
Pre-review Checklist
Release Note
Docs