@@ -78,22 +78,21 @@ void ValidationInstance::initialize(const Options& options,
78
78
// If we get all the way through that stripped-down initialization flow, to the point where we'd
79
79
// be ready to serve, then the config has passed validation.
80
80
// Handle configuration that needs to take place prior to the main configuration load.
81
- envoy::config::bootstrap::v3::Bootstrap bootstrap;
82
- InstanceUtil::loadBootstrapConfig (bootstrap, options,
81
+ InstanceUtil::loadBootstrapConfig (bootstrap_, options,
83
82
messageValidationContext ().staticValidationVisitor (), *api_);
84
83
85
- Config::Utility::createTagProducer (bootstrap );
86
- bootstrap .mutable_node ()->set_hidden_envoy_deprecated_build_version (VersionInfo::version ());
84
+ Config::Utility::createTagProducer (bootstrap_ );
85
+ bootstrap_ .mutable_node ()->set_hidden_envoy_deprecated_build_version (VersionInfo::version ());
87
86
88
87
local_info_ = std::make_unique<LocalInfo::LocalInfoImpl>(
89
- stats ().symbolTable (), bootstrap .node (), bootstrap .node_context_params (), local_address,
88
+ stats ().symbolTable (), bootstrap_ .node (), bootstrap_ .node_context_params (), local_address,
90
89
options.serviceZone (), options.serviceClusterName (), options.serviceNodeName ());
91
90
92
91
overload_manager_ = std::make_unique<OverloadManagerImpl>(
93
- dispatcher (), stats (), threadLocal (), bootstrap .overload_manager (),
92
+ dispatcher (), stats (), threadLocal (), bootstrap_ .overload_manager (),
94
93
messageValidationContext ().staticValidationVisitor (), *api_, options_);
95
- Configuration::InitialImpl initial_config (bootstrap , options);
96
- initial_config.initAdminAccessLog (bootstrap , *this );
94
+ Configuration::InitialImpl initial_config (bootstrap_ , options);
95
+ initial_config.initAdminAccessLog (bootstrap_ , *this );
97
96
admin_ = std::make_unique<Server::ValidationAdmin>(initial_config.admin ().address ());
98
97
listener_manager_ =
99
98
std::make_unique<ListenerManagerImpl>(*this , *this , *this , false , quic_stat_names_);
@@ -107,7 +106,7 @@ void ValidationInstance::initialize(const Options& options,
107
106
localInfo (), *secret_manager_, messageValidationContext (), *api_, http_context_,
108
107
grpc_context_, router_context_, accessLogManager (), singletonManager (), options,
109
108
quic_stat_names_);
110
- config_.initialize (bootstrap , *this , *cluster_manager_factory_);
109
+ config_.initialize (bootstrap_ , *this , *cluster_manager_factory_);
111
110
runtime ().initialize (clusterManager ());
112
111
clusterManager ().setInitializedCb ([this ]() -> void { init_manager_.initialize (init_watcher_); });
113
112
}
0 commit comments