-
Notifications
You must be signed in to change notification settings - Fork 110
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
Implemented delivery order label #701
Implemented delivery order label #701
Conversation
I'm going to implement a basic e2e test, although I'm not sure how far I can go with testing this feature in a e2e manner |
Codecov Report
@@ Coverage Diff @@
## main #701 +/- ##
============================================
- Coverage 76.78% 76.63% -0.16%
+ Complexity 441 440 -1
============================================
Files 77 77
Lines 2908 2923 +15
Branches 133 133
============================================
+ Hits 2233 2240 +7
- Misses 525 532 +7
- Partials 150 151 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/retest |
Because I would love to use reconciler-test for the e2e, I've opened this one #703 |
/this-is-fine π |
If you want we can have a status condition to indicate the |
/kind enhancement |
I don't see the point TBH, there's no need to tell the user the controller read the contract properly IMO |
I mean an annotation is weak compared to a key in the spec because we don't have a way to validate that the key is correct for that reason a status condition would be nice to have IMO. |
84d1034
to
ee02f60
Compare
@pierDipi can we tackle the status issue in another PR? From my understanding (I might be wrong here) we need to setup some alternate condition set, like done in receiver_condition_set.go, right? If that's the case, i think it deserves a separate PR |
ee02f60
to
3df189b
Compare
I've removed broker_test.go, since upstream movement around features is unstable now... For me we're ready to go |
/hold one sec, maybe it's better to use a label (that's what other people does π ) |
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
/unhold Ok now we use labels |
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
I see no benefits in using a label here, basically, the difference is that using a label I can query all objects with that label without doing a full scan or building a custom index whereas an annotation requires a full scan or a custom index. For example, we use a label in our triggers to get fast access to all triggers associated with a broker. In this case, a query like "give me all ordered trigger" seems pretty useless. Of course, the benefit of using a label comes with additional storage, memory, and compute costs, so my preference would be to use an annotation since this value is only useful in a single reconcile cycle. |
@pierDipi the reason i went for a label is to align with kafka source: https://knative.dev/docs/eventing/samples/kafka/source/#optional-specify-the-key-deserializer But yeah i was checking in serving and they use annotations too for "special"/"experimental" features, so i'll revert and go for the annotation |
The following is the coverage report on the affected files.
|
I wonder how this works given the issue on the partitionkey on Slack π€ |
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.
Unhold when you're ready!
/hold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
/unhold |
My test uses a broker with a single partition :) I'm going to develop a test with different partitions once partitionKey is fixed |
Oh, gotcha! |
Signed-off-by: Francesco Guardiani francescoguard@gmail.com
Part of #589
Proposed Changes
Release Note
Docs
Coming soon in another PR to docs repo