-
Notifications
You must be signed in to change notification settings - Fork 599
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
ETs reference subscriptions/triggers on reply #7733
ETs reference subscriptions/triggers on reply #7733
Conversation
Signed-off-by: Calum Murray <[email protected]>
Signed-off-by: Calum Murray <[email protected]>
Signed-off-by: Calum Murray <[email protected]>
Signed-off-by: Calum Murray <[email protected]>
Signed-off-by: Calum Murray <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7733 +/- ##
==========================================
- Coverage 69.15% 68.92% -0.23%
==========================================
Files 339 339
Lines 19431 19502 +71
==========================================
+ Hits 13437 13442 +5
- Misses 5332 5394 +62
- Partials 662 666 +4 ☔ View full report in Codecov by Sentry. |
// Namespace is used to identify the namespace of the original subscription object. | ||
// +optional | ||
Namespace *string `json:"namespace,omitempty"` |
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.
After reviewing this in more details, I think that we can add the namespace when the new cross ns feature is introduced so that we can place the namespace usage behind feature flag and test it extensively as it's a critical security area.
For now, I would use the channel/subscription namespace instead of this custom field
|
||
f.Alpha("broker"). | ||
Must("deliver events to subscriber", assert.OnStore(sink).MatchEvent(cetest.HasId(event.ID())).AtLeast(1)). | ||
Must("create event type referencing the trigger", eventtype.WaitForEventType(eventtype.AssertReferencePresent(trigger.AsKReference(triggerName)))) |
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 believe matching also the type might provide an additional coverage
Signed-off-by: Calum Murray <[email protected]>
/cc @pierDipi |
Signed-off-by: Calum Murray <[email protected]>
Signed-off-by: Calum Murray <[email protected]>
/cc @pierDipi |
/retest-required |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, pierDipi 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 |
/test reconciler-tests |
Fixes #7698
Fixes #7699
Proposed Changes
While I was working on #7699 I realized that the fix for #7699 would lead to a simpler solution to #7698 than I had in #7710. This PR now has the fix for both issues
Pre-review Checklist
Release Note
Docs