dynamic_modules: initial support for attributes#38519
dynamic_modules: initial support for attributes#38519mattklein123 merged 5 commits intoenvoyproxy:mainfrom
Conversation
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
| envoy_dynamic_module_type_attribute_id_XdsUpstreamHostMetadata, | ||
| // xds.filter_chain_name | ||
| envoy_dynamic_module_type_attribute_id_XdsFilterChainName, | ||
| } envoy_dynamic_module_type_attribute_id; |
There was a problem hiding this comment.
note: the choice of enum vs accepting an opaque "path" is intentional as we've experienced in Wasm that paths resolution is unnecessarily complex and slow look up. IIRC Wasm is planning to migrate this enum style from the opaque "get_property([]string)" style.
| * | ||
| * Note: currently, not all attributes are implemented. | ||
| */ | ||
| bool envoy_dynamic_module_callback_http_filter_get_attribute_string( |
There was a problem hiding this comment.
note: just like the existing dynamic metadata callbacks, each function is typed vs opaque "returning some serialized buffer" as we saw in Wasm. Non-integer/string complex type can be supported later (with some non-protobuf serialization scheme) if someone requests.
|
/coverage |
|
Coverage for this Pull Request will be rendered here: https://storage.googleapis.com/envoy-pr/38519/coverage/index.html The coverage results are (re-)rendered each time the CI |
envoyproxy/envoy#38519 --------- Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Commit Message: dynamic_modules: initial support for attributes Additional Description: This adds two new callback functions: * envoy_dynamic_module_callback_http_filter_get_attribute_string * envoy_dynamic_module_callback_http_filter_get_attribute_int which are similar to dynamic_metadata callbacks. This implements only a subset of attributes and followup PRs will implement the rest little by little. Risk Level: low Testing: added Docs Changes: n/a Release Notes: n/a Platform Specific Features: n/a --------- Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Commit Message: dynamic_modules: initial support for attributes Additional Description: This adds two new callback functions: * envoy_dynamic_module_callback_http_filter_get_attribute_string * envoy_dynamic_module_callback_http_filter_get_attribute_int which are similar to dynamic_metadata callbacks. This implements only a subset of attributes and followup PRs will implement the rest little by little. Risk Level: low Testing: added Docs Changes: n/a Release Notes: n/a Platform Specific Features: n/a --------- Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Commit Message: dynamic_modules: initial support for attributes
Additional Description:
This adds two new callback functions:
which are similar to dynamic_metadata callbacks. This implements only a subset of attributes and followup PRs will implement the rest little by little.
Risk Level: low
Testing: added
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a