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