-
Notifications
You must be signed in to change notification settings - Fork 5.3k
xds: use filter type URL as the primary way to discover extensions #9618
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
7442509
xds: use filter type URL as the primary way to discover extensions
kyessenov aad3af2
fix test registry
kyessenov ed020ad
merge fix
kyessenov 151f640
merge fix
kyessenov f76c893
add unit tests
kyessenov 224d5cf
fix asan
kyessenov 2e7c1fa
review
kyessenov 65113cb
asan fix
kyessenov 6312737
hopefully fix coverage
kyessenov a4b77ae
coverage fails because of exception test for double registration
kyessenov ac5504b
change exception into a warning
kyessenov 2e6515b
linkage-dependent test
kyessenov 4b02241
document
kyessenov 0c3dba7
blurb about typed struct
kyessenov cff30cd
typo
kyessenov 9265f8e
issue with empty again
kyessenov c0d29bd
struct is ok
kyessenov 18b57ca
fallback to name
kyessenov 5d3342b
oops
kyessenov a0445ec
merge fix
kyessenov d546d26
fix tests
kyessenov 6a1d486
section
kyessenov bc6f2bb
fix version
kyessenov 402a86d
review
kyessenov 7134d12
Merge remote-tracking branch 'upstream/master' into free-the-name
kyessenov 36ad6ec
fix coverage build
kyessenov df32987
Merge remote-tracking branch 'upstream/master' into free-the-name
kyessenov 858dfed
Merge remote-tracking branch 'upstream/master' into free-the-name
kyessenov 0b875dd
trying to debug on CI since my local build passes
kyessenov a338edf
trying to debug on CI since my local build passes
kyessenov 9f398d3
ODR violation
kyessenov 1083c22
Merge remote-tracking branch 'upstream/master' into free-the-name
kyessenov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| .. _config_overview_extension_configuration: | ||
|
|
||
| Extension configuration | ||
| ----------------------- | ||
|
|
||
| Each configuration resource in Envoy has a type URL in the `typed_config`. This | ||
| type corresponds to a versioned schema. If the type URL uniquely identifies an | ||
| extension capable of interpreting the configuration, then the extension is | ||
| selected regardless of the `name` field. In this case the `name` field becomes | ||
| optional and can be used as an identifier or as an annotation for the | ||
| particular instance of the extension configuration. For example, the following | ||
| filter configuration snippet is permitted: | ||
|
|
||
| .. code-block:: yaml | ||
|
|
||
| name: front-http-proxy | ||
| typed_config: | ||
| "@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager | ||
| stat_prefix: ingress_http | ||
| codec_type: AUTO | ||
| rds: | ||
| route_config_name: local_route | ||
| config_source: | ||
| api_config_source: | ||
| api_type: GRPC | ||
| grpc_services: | ||
| envoy_grpc: | ||
| cluster_name: xds_cluster | ||
| http_filters: | ||
| - name: front-router | ||
| typed_config: | ||
| "@type": type.googleapis.com/envoy.config.filter.http.router.v2.Router | ||
| dynamic_stats: true | ||
|
|
||
| In case the control plane lacks the schema definitions for an extension, | ||
| `udpa.type.v1.TypedStruct` should be used as a generic container. The type URL | ||
| inside it is then used by a client to convert the contents to a typed | ||
| configuration resource. For example, the above example could be written as | ||
| follows: | ||
|
|
||
| .. code-block:: yaml | ||
|
|
||
| name: front-http-proxy | ||
| typed_config: | ||
| "@type": type.googleapis.com/udpa.type.v1.TypedStruct | ||
| type_url: type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager | ||
| value: | ||
| stat_prefix: ingress_http | ||
| codec_type: AUTO | ||
| rds: | ||
| route_config_name: local_route | ||
| config_source: | ||
| api_config_source: | ||
| api_type: GRPC | ||
| grpc_services: | ||
| envoy_grpc: | ||
| cluster_name: xds_cluster | ||
| http_filters: | ||
| - name: front-router | ||
| typed_config: | ||
| "@type": type.googleapis.com/udpa.type.v1.TypedStruct | ||
| type_url: type.googleapis.com/envoy.config.filter.http.router.v2.Router | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,5 +10,6 @@ Overview | |
| versioning | ||
| bootstrap | ||
| examples | ||
| extension | ||
| xds_api | ||
| mgmt_server | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.