Skip to content

Commit

Permalink
fix dumpEcdsFilterConfigs
Browse files Browse the repository at this point in the history
Signed-off-by: zengyuxing007 <[email protected]>
  • Loading branch information
zengyuxing007 committed Mar 12, 2024
1 parent 08231e3 commit e561dd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/common/filter/config_discovery_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,12 @@ class FilterConfigProviderManagerImplBase : Logger::Loggable<Logger::Id::filter>
continue;
}
envoy::config::core::v3::TypedExtensionConfig filter_config;
filter_config.set_name(ecds_filter->name());
if (ecds_filter->lastConfig()) {
MessageUtil::packFrom(*filter_config.mutable_typed_config(), *ecds_filter->lastConfig());
} else {
continue;
}
filter_config.set_name(ecds_filter->name());
auto& filter_config_dump = *config_dump->mutable_ecds_filters()->Add();
filter_config_dump.mutable_ecds_filter()->PackFrom(filter_config);
filter_config_dump.set_version_info(ecds_filter->lastVersionInfo());
Expand Down

0 comments on commit e561dd2

Please sign in to comment.