lc trie: add exclusive flag.#3825
Conversation
*Risk Level*: Low *Testing*: bazel test //test/... *Docs Changes*: n/a *Release Notes*: n/a Signed-off-by: Piotr Sikora <piotrsikora@google.com>
|
cc @brian-pane |
ccaraman
left a comment
There was a problem hiding this comment.
@PiotrSikora should the exclusive flag be exposed in the filter to enable/disable?
|
@ccaraman You mean in the IP tagging filter? It could be useful there (e.g. if tags are used for geolocation), but - assuming that you guys are using it - you should probably know better than me. I'm happy to add it if you think it's going to be useful for you, but I'd rather not block this PR on it. FWIW, I'm going to use this for destination IP matching in the filter chains. |
source/common/network/lc_trie.h
Outdated
| BinaryTrie(bool exclusive) : root_(std::make_unique<Node>()), exclusive_(exclusive) {} | ||
|
|
||
| /** | ||
| * Add a CIDR prefix and associated tag to the binary trie. If an entry already |
There was a problem hiding this comment.
[minor] You might want to s/tag/data/g in this comment for consistency with the new nomenclature.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
|
@brian-pane I did mass replace, looks that I've missed bunch in the original commit. |
|
Friendly ping, since this was already approved twice (sans |
* origin/master: config: making v2-config-only a boolean flag (envoyproxy#3847) lc trie: add exclusive flag. (envoyproxy#3825) upstream: introduce PriorityStateManager, refactor EDS (envoyproxy#3783) test: deflaking header_integration_test (envoyproxy#3849) http: new style WebSockets, where headers and data are processed by the filter chain. (envoyproxy#3776) common: minor doc updates (envoyproxy#3845) fix master build (envoyproxy#3844) logging: Requiring details for RELEASE_ASSERT (envoyproxy#3842) test: add test for consistency of RawStatData internal memory representation (envoyproxy#3843) common: jittered backoff implementation (envoyproxy#3791) format: run buildifier on .bzl files. (envoyproxy#3824) Support mutable metadata for endpoints (envoyproxy#3814) test: deflaking a test, improving debugability (envoyproxy#3829) Update ApiConfigSource docs with grpc_services only for GRPC configs (envoyproxy#3834) Add hard-coded /hot_restart_version test (envoyproxy#3832) healthchecks: Add interval_jitter_percent healthcheck option (envoyproxy#3816) Signed-off-by: Snow Pettersen <snowp@squareup.com>
While there, replace remaining "tags" with "data".
Risk Level: Low
Testing: bazel test //test/...
Docs Changes: n/a
Release Notes: n/a
Signed-off-by: Piotr Sikora piotrsikora@google.com