Skip to content
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

extproc: fix filter config marshalling #144

Merged
merged 1 commit into from
Jan 20, 2025
Merged

Conversation

nacx
Copy link
Contributor

@nacx nacx commented Jan 20, 2025

The YAML library being used does not honor the yaml tags. It just considers the json ones and the extproc filter config was not unmarshaleld according to the defined values.
The llmRequestCosts.metadataKey and MetadataNamespace properties had wrong tags.

Signed-off-by: Ignasi Barrera <[email protected]>
@nacx nacx requested a review from a team as a code owner January 20, 2025 14:28
@nacx nacx changed the title fix filter config marshalling extproc: fix filter config marshalling Jan 20, 2025
@nacx nacx marked this pull request as draft January 20, 2025 14:42
@nacx nacx marked this pull request as ready for review January 20, 2025 14:43
@yuzisun
Copy link
Contributor

yuzisun commented Jan 20, 2025

If we use json tags, shall we reuse the types defined from the control plane API? I feel like we are duplicating the types and it is hard to maintain going forward.

Copy link
Member

@mathetake mathetake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@mathetake
Copy link
Member

mathetake commented Jan 20, 2025

Re: reusing - that's intentional and this is to decouple EG specific doc comment etc. for example backend here is a mere string vs the real Backend resource. If this gets really hard to maintain let's switch back to it, but for now let me take care of it:🙇

@mathetake mathetake merged commit 8af2dfd into envoyproxy:main Jan 20, 2025
11 checks passed
aabchoo added a commit that referenced this pull request Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants