forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cluster_manager.cc
28 lines (22 loc) · 1021 Bytes
/
cluster_manager.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "server/config_validation/cluster_manager.h"
#include "envoy/config/bootstrap/v3/bootstrap.pb.h"
#include "envoy/config/core/v3/config_source.pb.h"
#include "common/common/utility.h"
namespace Envoy {
namespace Upstream {
ClusterManagerPtr ValidationClusterManagerFactory::clusterManagerFromProto(
const envoy::config::bootstrap::v3::Bootstrap& bootstrap) {
return std::make_unique<ValidationClusterManager>(
bootstrap, *this, stats_, tls_, runtime_, local_info_, log_manager_, main_thread_dispatcher_,
admin_, validation_context_, api_, http_context_, grpc_context_, router_context_);
}
CdsApiPtr
ValidationClusterManagerFactory::createCds(const envoy::config::core::v3::ConfigSource& cds_config,
ClusterManager& cm) {
// Create the CdsApiImpl...
ProdClusterManagerFactory::createCds(cds_config, cm);
// ... and then throw it away, so that we don't actually connect to it.
return nullptr;
}
} // namespace Upstream
} // namespace Envoy