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

golang filter: register config factory and config parser in a single API #27351

Merged
merged 2 commits into from
May 17, 2023

Conversation

doujiang24
Copy link
Member

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

@doujiang24
Copy link
Member Author

/review @wangfakang

@doujiang24
Copy link
Member Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #27351 (comment) was created by @doujiang24.

see: more, trace.

// TODO merge it to api.HttpFilterConfigFactory
func RegisterHttpFilterConfigParser(parser api.StreamFilterConfigParser) {
httpFilterConfigParser = parser
func RegisterHttpFilterConfigFactoryAndParser(name string, f api.StreamFilterConfigFactory, parser api.StreamFilterConfigParser) {
Copy link
Member

Choose a reason for hiding this comment

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

It would be helpful to add some comments or code-level checks, such as indicating that the "factory" parameter is required and the "parser" parameter is optional.

Copy link
Member

@wangfakang wangfakang left a comment

Choose a reason for hiding this comment

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

Some minor issues, others LGTM. thanks.

Signed-off-by: doujiang24 <[email protected]>
Copy link
Member

@wangfakang wangfakang left a comment

Choose a reason for hiding this comment

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

LGTM
ping @ggreenway @wbpcode

Copy link
Member

@wbpcode wbpcode left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@wbpcode wbpcode merged commit 2f27d40 into envoyproxy:main May 17, 2023
rshriram pushed a commit to rshriram/envoy that referenced this pull request May 17, 2023
…API (envoyproxy#27351)

* golang filter: register config factory and config parser in a single API.

Signed-off-by: doujiang24 <[email protected]>

* add comment.

Signed-off-by: doujiang24 <[email protected]>

---------

Signed-off-by: doujiang24 <[email protected]>
Signed-off-by: Shriram Rajagopalan <[email protected]>
reskin89 pushed a commit to reskin89/envoy that referenced this pull request Jul 11, 2023
…API (envoyproxy#27351)

* golang filter: register config factory and config parser in a single API.

Signed-off-by: doujiang24 <[email protected]>

* add comment.

Signed-off-by: doujiang24 <[email protected]>

---------

Signed-off-by: doujiang24 <[email protected]>
Signed-off-by: Ryan Eskin <[email protected]>
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.

None yet

4 participants