-
Notifications
You must be signed in to change notification settings - Fork 119
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 configurable CE metadata extension prefix #4164
base: main
Are you sure you want to change the base?
add configurable CE metadata extension prefix #4164
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: cchayka-campsci The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The committers listed above are authorized under a signed CLA. |
Hi @cchayka-campsci. Thanks for your PR. I'm waiting for a knative-extensions 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-sigs/prow repository. |
/ok-to-test |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4164 +/- ##
============================================
- Coverage 49.33% 45.51% -3.82%
============================================
Files 374 270 -104
Lines 23479 19925 -3554
Branches 313 0 -313
============================================
- Hits 11583 9069 -2514
+ Misses 10993 10129 -864
+ Partials 903 727 -176
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -31,12 +32,17 @@ public class DispatcherEnv extends BaseEnv { | |||
public static final String EGRESSES_INITIAL_CAPACITY = "EGRESSES_INITIAL_CAPACITY"; | |||
private final int egressesInitialCapacity; | |||
|
|||
public static final String CE_METADATA_EXTENSION_PREFIX = "CE_METADATA_EXTENSION_PREFIX"; |
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.
was there any feedback from the node.js library on why they fail - even the spec says should
?
CC @Cali0707
Asking here, instead of adding all this code for pluggable prefixes
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.
The node.js library was updated successfully. We are in a tough position to update some of our legacy services so were hoping this change could be considered regardless.
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.
Yeah, we fixed it in the SDK since as you said @matzew this was a "should" requirement. But, I guess that doesn't fix it if people are using a non-fixed version of the SDK
Proposed Changes
As brought up before in this issue #3992, a previous version of NodeJS
cloudevents
would throw an error for any extension > 20 chars in length.We are in a tough position to update this package for a large number of legacy services, so we were hoping you could consider allowing this change.
Basically just adding a new env var "CE_METADATA_EXTENSION_PREFIX" to change the "knativekafka" part of the "knativekafkapartition" and "knativekafkaoffset" CE extensions.
Release Note
Docs
previous pull request to the wrong branch: #4144