Skip to content

admin: extract config dump handler to separate class#12942

Merged
mattklein123 merged 4 commits intoenvoyproxy:masterfrom
rulex123:config-dump-handler
Sep 9, 2020
Merged

admin: extract config dump handler to separate class#12942
mattklein123 merged 4 commits intoenvoyproxy:masterfrom
rulex123:config-dump-handler

Conversation

@rulex123
Copy link
Contributor

@rulex123 rulex123 commented Sep 2, 2020

Description: extract config dump handler to separate class, as part of refactoring for #5505.

Risk Level: low
Testing: pre-existing tests
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Erica Manno <erica.manno@gmail.com>
Signed-off-by: Erica Manno <erica.manno@gmail.com>
Copy link
Member

@zuercher zuercher left a comment

Choose a reason for hiding this comment

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

Thanks! Other than the dependencies, I think this looks good.

"@envoy_api//envoy/config/core/v3:pkg_cc_proto",
"@envoy_api//envoy/config/endpoint/v3:pkg_cc_proto",
"@envoy_api//envoy/config/route/v3:pkg_cc_proto",
"@envoy_api//envoy/extensions/filters/network/http_connection_manager/v3:pkg_cc_proto",
Copy link
Member

Choose a reason for hiding this comment

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

At least some of these should be added to the config_dump_handler_lib target, since it directly depends on them. They're obviously being picked up by some transitive dependency, but some future refactoring may break that so I'd rather call them out as direct dependencies.


} // namespace

ConfigDumpHandler::ConfigDumpHandler(ConfigTracker& configTracker, Server::Instance& server)
Copy link
Member

Choose a reason for hiding this comment

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

This configTracker should be config_tracker -- that's what clang-tidy is complaining about.

Signed-off-by: Erica Manno <erica.manno@gmail.com>
Signed-off-by: Erica Manno <erica.manno@gmail.com>
@rulex123 rulex123 requested a review from zuercher September 8, 2020 14:30
Copy link
Member

@zuercher zuercher left a comment

Choose a reason for hiding this comment

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

Thanks!

@mattklein123 mattklein123 merged commit 03c0911 into envoyproxy:master Sep 9, 2020
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