-
Notifications
You must be signed in to change notification settings - Fork 68
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
Validate trigger filters are immutable #468
Validate trigger filters are immutable #468
Conversation
/hold I want to see if we can actually swap the binding instead of restricting users |
Codecov Report
@@ Coverage Diff @@
## main #468 +/- ##
==========================================
- Coverage 75.99% 75.82% -0.18%
==========================================
Files 44 45 +1
Lines 2691 2713 +22
==========================================
+ Hits 2045 2057 +12
- Misses 525 533 +8
- Partials 121 123 +2
Continue to review full report at Codecov.
|
/hold cancel I think it's too much work to tackle right now, we can add immutability and change it later if we can figure out how to enable it |
ready for review /assign @knative-sandbox/eventing-rabbitmq-approvers |
3dc632f
to
6c0b1e0
Compare
thanks @benmoss |
Test case - Update trigger and change filter Before Change
But things are not happy
With Change
|
return err | ||
} | ||
err := b.Validate(ctx) | ||
err := t.Validate(ctx) | ||
if err == nil { | ||
return nil | ||
} |
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.
nit: is this if
check 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.
cc @benmoss
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benmoss, xtreme-sameer-vohra 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 |
Changes
/kind enhancement
Fixes #338
Release Note