-
Notifications
You must be signed in to change notification settings - Fork 5.5k
router: scoped rds (2d): integrate SRDS API into HttpConnectionManager #7068
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 42 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
cdae885
Support scoped routing configuration.
AndresGuedez db48450
Derive test class from TestBase.
AndresGuedez 756afcd
fix_format fixes.
AndresGuedez 8e624ea
Merge remote-tracking branch 'upstream/master' into scoped-rds-inline…
AndresGuedez 98149e5
Minor cleanup.
AndresGuedez 76b7196
Fix srds.proto docs.
AndresGuedez f924eb7
Pendatic spelling and docs cleanup.
AndresGuedez 51d8dff
fix_format.
AndresGuedez ccca775
More detailed documentation/examples for SRDS.
AndresGuedez e5d87db
fix_format.
AndresGuedez 9c3d45b
Update pedantic spelling dictionary.
AndresGuedez afcc2a5
Clarify Scope.Key documentation.
AndresGuedez c774f00
Use EXPECT_NO_THROW() to validate successful allocation/construction.
AndresGuedez 8cc1b13
fix_format.
AndresGuedez 71f2a74
Modify SRDS to support delta updates and ease transition to incremental.
AndresGuedez 5aed783
Support delta SRDS proto in integration test.
AndresGuedez 15b1c7c
Cleanup.
AndresGuedez b216034
Add comments.
AndresGuedez c8f531b
Merge remote-tracking branch 'upstream/master' into scoped-rds-inline…
AndresGuedez 39309ac
Fix build failures after master merge.
AndresGuedez 8fe33ad
Cleanup and comments.
AndresGuedez 8c38526
Fix format.
AndresGuedez dd2261c
Comments.
AndresGuedez a7a621b
Merge remote-tracking branch 'upstream/master' into scoped-rds-inline…
AndresGuedez 090bbd8
Cleanup and minor refactor of ConfigProvider framework.
AndresGuedez 8b8a5e7
clang-tidy cleanup.
AndresGuedez 43c95e8
More clang-tidy cleanup.
AndresGuedez 6adaa22
Fix build break.
AndresGuedez e8d5bff
Merge remote-tracking branch 'origin/scoped-rds-inline-dynamic' into …
AndresGuedez c2ec4d4
Fix build after merge and cleanup.
AndresGuedez 8df07fc
Remove dead code.
AndresGuedez 90532f0
Improve test coverage.
AndresGuedez fd3963e
Merge remote-tracking branch 'upstream/master' into scoped-rds-integr…
AndresGuedez d5ae805
Fix format.
AndresGuedez 3ad4c0a
Cleanup.
AndresGuedez 0e4d51c
Add warning log when SRDS is enabled.
AndresGuedez 62c4359
Merge remote-tracking branch 'upstream/master' into scoped-rds-integr…
AndresGuedez c4a947a
Merge remote-tracking branch 'upstream/master' into scoped-rds-integr…
AndresGuedez 5f16708
Merge remote-tracking branch 'upstream/master' into scoped-rds-integr…
AndresGuedez 0155a91
Fix build after master merge.
AndresGuedez ecfe946
Cleanup.
AndresGuedez e876cae
Move function to more appropriate class.
AndresGuedez 37ec3f8
Merge remote-tracking branch 'upstream/master' into scoped-rds-integr…
AndresGuedez eaf694b
Build fix + cleanup.
AndresGuedez 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,46 @@ using Envoy::Config::ConfigProviderPtr; | |
| namespace Envoy { | ||
| namespace Router { | ||
|
|
||
| namespace ScopedRoutesConfigProviderUtil { | ||
|
|
||
| ConfigProviderPtr | ||
| create(const envoy::config::filter::network::http_connection_manager::v2::HttpConnectionManager& | ||
| config, | ||
| Server::Configuration::FactoryContext& factory_context, const std::string& stat_prefix, | ||
| ConfigProviderManager& scoped_routes_config_provider_manager) { | ||
| ASSERT(config.route_specifier_case() == envoy::config::filter::network::http_connection_manager:: | ||
| v2::HttpConnectionManager::kScopedRoutes); | ||
|
|
||
| switch (config.scoped_routes().config_specifier_case()) { | ||
| case envoy::config::filter::network::http_connection_manager::v2::ScopedRoutes:: | ||
| kScopedRouteConfigurationsList: { | ||
| const envoy::config::filter::network::http_connection_manager::v2:: | ||
| ScopedRouteConfigurationsList& scoped_route_list = | ||
| config.scoped_routes().scoped_route_configurations_list(); | ||
| return scoped_routes_config_provider_manager.createStaticConfigProvider( | ||
| RepeatedPtrUtil::convertToConstMessagePtrVector( | ||
| scoped_route_list.scoped_route_configurations()), | ||
| factory_context, | ||
| ScopedRoutesConfigProviderManagerOptArg(config.scoped_routes().name(), | ||
| config.scoped_routes().rds_config_source(), | ||
|
htuch marked this conversation as resolved.
|
||
| config.scoped_routes().scope_key_builder())); | ||
| } | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: superfluous blank line.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
| case envoy::config::filter::network::http_connection_manager::v2::ScopedRoutes::kScopedRds: | ||
| return scoped_routes_config_provider_manager.createXdsConfigProvider( | ||
| config.scoped_routes().scoped_rds(), factory_context, stat_prefix, | ||
| ScopedRoutesConfigProviderManagerOptArg(config.scoped_routes().name(), | ||
| config.scoped_routes().rds_config_source(), | ||
| config.scoped_routes().scope_key_builder())); | ||
|
|
||
| default: | ||
| // Proto validation enforces that is not reached. | ||
| NOT_REACHED_GCOVR_EXCL_LINE; | ||
| } | ||
| } | ||
|
|
||
| } // namespace ScopedRoutesConfigProviderUtil | ||
|
|
||
| InlineScopedRoutesConfigProvider::InlineScopedRoutesConfigProvider( | ||
| ProtobufTypes::ConstMessagePtrVector&& config_protos, std::string name, | ||
| Server::Configuration::FactoryContext& factory_context, | ||
|
|
||
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.