Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
design 10574: transformations #10689
base: main
Are you sure you want to change the base?
design 10574: transformations #10689
Changes from 2 commits
7c6b54c
e44d25a
13e042d
294955c
72627ac
4e3c967
63f4c6e
91be9e7
004ed1f
8228109
1c691c3
f4551b0
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
IMO it's worth elaborating on the library that is planned to be used (including links).
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.
Updated and added as the dependency sub tag. Felt that it was better to talk about after the user facing api is discussed.
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.
Might be worth breaking this line up into paragraphs or just newline separated sentences to allow for reviewing.
I think it would be great to expand on the planned semantics of the 'flag' to switch between modes and how/if that is relevant to the consumer of the new transformation API
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.
Added more details and an example migration plan for a piece that is out of scope for now (upstream filter)
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.
Is the implication here that these functions need to built directly in the dynamic module on top of the functionality in the inja replacement?
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.
Yep. As seen in the poc pr where we added header and substring as examples.
The other nice thing is that the previous transformation setup needed explicit access to Thread local storage due to how the inja library we used was setup. Now can use the dynamic module's memory given configuration setup not polluting.
So for example https://github.com/kgateway-dev/kgateway/pull/10677/files#diff-1992c8adc1fc21e3baa436d3ffd5a91d47311816cde7bad0d8785bbbc4865aeeR152
https://github.com/kgateway-dev/kgateway/pull/10677/files#diff-1992c8adc1fc21e3baa436d3ffd5a91d47311816cde7bad0d8785bbbc4865aeeR103
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.
can you clarify what this means? i.e. getting CI for a custom envoy build working?
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.
Does the update better answer?