-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
http: route level filter disabled
support
#27210
http: route level filter disabled
support
#27210
Conversation
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
/wait |
/wait This implementation will add additional hash searching for every filter instance creation. If there are lots filters need to be skipped, then this overhead should acceptable. But for the one who use lots of filters but needn't route level filter disable function, maybe this overhead is a little heavy. |
Signed-off-by: wbpcode <wangbaiping@corp.netease.com>
14f2e02
to
48a6e05
Compare
Signed-off-by: wbpcode <wangbaiping@corp.netease.com>
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.
Thanks for fixing this!
/wait #27263 |
Looking forward to seeing this land. I think this is super-useful as a generic per-route filter opt-in/opt-out, which is needed by k8s Gateway https://gateway-api.sigs.k8s.io/api-types/httproute/#filters-optional. |
Waiting for #27263 to be land first. But i think we almost get there. 🙂 |
…oute-filter-config-support
Signed-off-by: wbpcode <wangbaiping@corp.netease.com>
Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com>
Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com>
Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com>
Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com>
Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com>
…oute-filter-config-support
Signed-off-by: wbpcode <wangbaiping@corp.netease.com>
cc @mattklein123 |
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.
Thanks, needs a main merge though.
…oute-filter-config-support
cc @mattklein123 done, could you give a new stamp? thanks. |
* refactor and fix tests Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * fix test Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * more detailed comments Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * resolve conflict Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * fix test Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * change log and docs Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * Update changelogs/current.yaml Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com> * Update changelogs/current.yaml Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com> * Update changelogs/current.yaml Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com> * Update envoy/http/filter_factory.h Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com> * Update source/common/http/filter_chain_helper.cc Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com> * add new integration test Signed-off-by: wbpcode <wangbaiping@corp.netease.com> --------- Signed-off-by: wbpcode <wangbaiping@corp.netease.com> Signed-off-by: code <wangbaiping@corp.netease.com> Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: asheryer <asheryer@amazon.com>
* refactor and fix tests Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * fix test Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * more detailed comments Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * resolve conflict Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * fix test Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * change log and docs Signed-off-by: wbpcode <wangbaiping@corp.netease.com> * Update changelogs/current.yaml Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com> * Update changelogs/current.yaml Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com> * Update changelogs/current.yaml Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com> * Update envoy/http/filter_factory.h Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com> * Update source/common/http/filter_chain_helper.cc Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: code <wangbaiping@corp.netease.com> * add new integration test Signed-off-by: wbpcode <wangbaiping@corp.netease.com> --------- Signed-off-by: wbpcode <wangbaiping@corp.netease.com> Signed-off-by: code <wangbaiping@corp.netease.com> Co-authored-by: Matt Klein <mattklein123@gmail.com> Signed-off-by: Ryan Eskin <ryan.eskin89@protonmail.com>
Commit Message: http: route level filter config support
Additional Description:
To close #15025, and implement of new API in the #25927. Partly related to #20867.
Specifically, is PR implement two features:
1. first, make the route/vh level per filter config could be optional. The old implementation has some problem and may need to be reverted.2. second, a common way to disable a filter by the route/vh level per filter config.
Risk Level: mid.
Testing: wait.
Docs Changes: wait.
Release Notes: wait.
Platform Specific Features: wait.