Skip to content

ecds: refactor FilterConfigProviderManagerImpl into base and derived classes#17852

Merged
snowp merged 3 commits intoenvoyproxy:mainfrom
tbarrella:ecds
Aug 31, 2021
Merged

ecds: refactor FilterConfigProviderManagerImpl into base and derived classes#17852
snowp merged 3 commits intoenvoyproxy:mainfrom
tbarrella:ecds

Conversation

@tbarrella
Copy link
Copy Markdown
Contributor

Commit Message:
ecds: refactor FilterConfigProviderManagerImpl into base and derived classes

Signed-off-by: Taylor Barrella tabarr@google.com

Additional Description: Part of #14696 (comment). The plan is for FilterConfigProviderManagerImpl to become a template
Risk Level: Low
Testing: Existing
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A
#14696

…classes

Signed-off-by: Taylor Barrella <tabarr@google.com>
@tbarrella
Copy link
Copy Markdown
Contributor Author

cc @lambdai @kyessenov

Signed-off-by: Taylor Barrella <tabarr@google.com>
Signed-off-by: Taylor Barrella <tabarr@google.com>
Copy link
Copy Markdown
Contributor

@snowp snowp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, thanks! @kyessenov do you want to take a look as well?

const envoy::config::core::v3::ExtensionConfigSource& config_source,
const std::string& filter_config_name, Server::Configuration::FactoryContext& factory_context,
const std::string& stat_prefix, bool last_filter_in_filter_chain,
const std::string& stat_prefix, bool last_filter_in_filter_config,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should keep the name last_filter_in_filter_chain. The condition is that only terminal filters are last in chains.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok. I did it due to this since that code is going to be moved into the header. When I do that I can rename config -> chain from the code's body and elsewhere in the file as well

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the plan is to handle this in a follow up or in this PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A follow up. config is used in multiple other places too, not just here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM, let's merge this one then

Copy link
Copy Markdown
Contributor

@kyessenov kyessenov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me except I disagree with the rename of a parameter.

@snowp snowp merged commit baaa629 into envoyproxy:main Aug 31, 2021
@tbarrella tbarrella deleted the ecds branch August 31, 2021 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants