Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions bazel/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -130,70 +130,6 @@ def _go_deps(skip_targets):
def _envoy_api_deps():
_repository_impl("envoy_api")

api_bind_targets = [
"address",
"base",
"bootstrap",
"discovery",
"cds",
"discovery",
"eds",
"grpc_service",
"health_check",
"lds",
"metrics",
"protocol",
"rds",
"sds",
"stats",
"trace",
]
for t in api_bind_targets:
native.bind(
name = "envoy_" + t,
actual = "@envoy_api//api:" + t + "_cc",
)
filter_bind_targets = [
"fault",
]
for t in filter_bind_targets:
native.bind(
name = "envoy_filter_" + t,
actual = "@envoy_api//api/filter:" + t + "_cc",
)
http_filter_bind_targets = [
"buffer",
"fault",
"health_check",
"ip_tagging",
"lua",
"rate_limit",
"router",
"squash",
"transcoder",
]
for t in http_filter_bind_targets:
native.bind(
name = "envoy_filter_http_" + t,
actual = "@envoy_api//api/filter/http:" + t + "_cc",
)
network_filter_bind_targets = [
"http_connection_manager",
"tcp_proxy",
"mongo_proxy",
"redis_proxy",
"rate_limit",
"client_ssl_auth",
]
for t in network_filter_bind_targets:
native.bind(
name = "envoy_filter_network_" + t,
actual = "@envoy_api//api/filter/network:" + t + "_cc",
)
native.bind(
name = "envoy_filter_accesslog",
actual = "@envoy_api//api/filter/accesslog:accesslog_cc",
)
native.bind(
name = "http_api_protos",
actual = "@googleapis//:http_api_protos",
Expand Down
2 changes: 1 addition & 1 deletion bazel/repository_locations.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ REPOSITORY_LOCATIONS = dict(
urls = ["https://github.com/google/protobuf/archive/v3.5.0.tar.gz"],
),
envoy_api = dict(
commit = "5aa0208c3bf0ba35833dc4ac16c73839b032e70a",
commit = "8345af596d78d5da6becb0538fced3d65efbaadf",
remote = "https://github.com/envoyproxy/data-plane-api",
),
grpc_httpjson_transcoding = dict(
Expand Down
2 changes: 1 addition & 1 deletion include/envoy/grpc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ envoy_cc_library(
envoy_cc_library(
name = "async_client_manager_interface",
hdrs = ["async_client_manager.h"],
external_deps = ["envoy_grpc_service"],
deps = [
":async_client_interface",
"//include/envoy/stats:stats_interface",
"@envoy_api//envoy/api/v2:grpc_service_cc",
],
)

Expand Down
3 changes: 1 addition & 2 deletions include/envoy/grpc/async_client_manager.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#pragma once

#include "envoy/api/v2/grpc_service.pb.h"
#include "envoy/grpc/async_client.h"
#include "envoy/stats/stats.h"

#include "api/grpc_service.pb.h"

namespace Envoy {
namespace Grpc {

Expand Down
6 changes: 4 additions & 2 deletions include/envoy/local_info/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ envoy_package()
envoy_cc_library(
name = "local_info_interface",
hdrs = ["local_info.h"],
external_deps = ["envoy_base"],
deps = ["//include/envoy/network:address_interface"],
deps = [
"//include/envoy/network:address_interface",
"@envoy_api//envoy/api/v2:base_cc",
],
)
3 changes: 1 addition & 2 deletions include/envoy/local_info/local_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

#include <string>

#include "envoy/api/v2/base.pb.h"
#include "envoy/common/pure.h"
#include "envoy/network/address.h"

#include "api/base.pb.h"

namespace Envoy {
namespace LocalInfo {

Expand Down
3 changes: 1 addition & 2 deletions include/envoy/network/resolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
#include <cstdint>
#include <string>

#include "envoy/api/v2/address.pb.h"
#include "envoy/common/pure.h"
#include "envoy/network/address.h"

#include "api/address.pb.h"

namespace Envoy {
namespace Network {
namespace Address {
Expand Down
2 changes: 1 addition & 1 deletion include/envoy/router/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ envoy_cc_library(
envoy_cc_library(
name = "route_config_provider_manager_interface",
hdrs = ["route_config_provider_manager.h"],
external_deps = ["envoy_filter_network_http_connection_manager"],
deps = [
":rds_interface",
"//include/envoy/event:dispatcher_interface",
Expand All @@ -28,6 +27,7 @@ envoy_cc_library(
"//include/envoy/stats:stats_interface",
"//include/envoy/thread_local:thread_local_interface",
"//include/envoy/upstream:cluster_manager_interface",
"@envoy_api//envoy/api/v2/filter/network:http_connection_manager_cc",
],
)

Expand Down
3 changes: 1 addition & 2 deletions include/envoy/router/route_config_provider_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <string>

#include "envoy/api/v2/filter/network/http_connection_manager.pb.h"
#include "envoy/event/dispatcher.h"
#include "envoy/init/init.h"
#include "envoy/json/json_object.h"
Expand All @@ -12,8 +13,6 @@
#include "envoy/thread_local/thread_local.h"
#include "envoy/upstream/cluster_manager.h"

#include "api/filter/network/http_connection_manager.pb.h"

namespace Envoy {
namespace Router {

Expand Down
3 changes: 1 addition & 2 deletions include/envoy/router/router.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <string>

#include "envoy/access_log/access_log.h"
#include "envoy/api/v2/base.pb.h"
#include "envoy/common/optional.h"
#include "envoy/http/codec.h"
#include "envoy/http/codes.h"
Expand All @@ -19,8 +20,6 @@
#include "common/protobuf/protobuf.h"
#include "common/protobuf/utility.h"

#include "api/base.pb.h"

namespace Envoy {
namespace Router {

Expand Down
4 changes: 2 additions & 2 deletions include/envoy/server/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ envoy_cc_library(
envoy_cc_library(
name = "filter_config_interface",
hdrs = ["filter_config.h"],
external_deps = ["envoy_base"],
deps = [
":admin_interface",
"//include/envoy/access_log:access_log_interface",
Expand All @@ -128,13 +127,13 @@ envoy_cc_library(
"//source/common/common:assert_lib",
"//source/common/common:macros",
"//source/common/protobuf",
"@envoy_api//envoy/api/v2:base_cc",
],
)

envoy_cc_library(
name = "listener_manager_interface",
hdrs = ["listener_manager.h"],
external_deps = ["envoy_lds"],
deps = [
":drain_manager_interface",
":filter_config_interface",
Expand All @@ -143,6 +142,7 @@ envoy_cc_library(
"//include/envoy/network:listen_socket_interface",
"//include/envoy/ssl:context_interface",
"//source/common/protobuf",
"@envoy_api//envoy/api/v2/listener:listener_cc",
],
)

Expand Down
3 changes: 1 addition & 2 deletions include/envoy/server/filter_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <functional>

#include "envoy/access_log/access_log.h"
#include "envoy/api/v2/base.pb.h"
#include "envoy/http/filter.h"
#include "envoy/init/init.h"
#include "envoy/json/json_object.h"
Expand All @@ -20,8 +21,6 @@
#include "common/common/macros.h"
#include "common/protobuf/protobuf.h"

#include "api/base.pb.h"

namespace Envoy {
namespace Server {
namespace Configuration {
Expand Down
11 changes: 5 additions & 6 deletions include/envoy/server/listener_manager.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include "envoy/api/v2/listener/listener.pb.h"
#include "envoy/network/filter.h"
#include "envoy/network/listen_socket.h"
#include "envoy/network/listener.h"
Expand All @@ -9,8 +10,6 @@

#include "common/protobuf/protobuf.h"

#include "api/lds.pb.h"

namespace Envoy {
namespace Server {

Expand All @@ -36,9 +35,9 @@ class ListenerComponentFactory {
* @param context supplies the factory creation context.
* @return std::vector<Configuration::NetworkFilterFactoryCb> the list of filter factories.
*/
virtual std::vector<Configuration::NetworkFilterFactoryCb>
createNetworkFilterFactoryList(const Protobuf::RepeatedPtrField<envoy::api::v2::Filter>& filters,
Configuration::FactoryContext& context) PURE;
virtual std::vector<Configuration::NetworkFilterFactoryCb> createNetworkFilterFactoryList(
const Protobuf::RepeatedPtrField<envoy::api::v2::listener::Filter>& filters,
Configuration::FactoryContext& context) PURE;

/**
* Creates a list of listener filter factories.
Expand All @@ -47,7 +46,7 @@ class ListenerComponentFactory {
* @return std::vector<Configuration::ListenerFilterFactoryCb> the list of filter factories.
*/
virtual std::vector<Configuration::ListenerFilterFactoryCb> createListenerFilterFactoryList(
const Protobuf::RepeatedPtrField<envoy::api::v2::ListenerFilter>& filters,
const Protobuf::RepeatedPtrField<envoy::api::v2::listener::ListenerFilter>& filters,
Configuration::FactoryContext& context) PURE;

/**
Expand Down
10 changes: 4 additions & 6 deletions include/envoy/upstream/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ envoy_package()
envoy_cc_library(
name = "cluster_manager_interface",
hdrs = ["cluster_manager.h"],
external_deps = [
"envoy_bootstrap",
"envoy_cds",
],
deps = [
":load_balancer_interface",
":thread_local_cluster_interface",
Expand All @@ -26,6 +22,8 @@ envoy_cc_library(
"//include/envoy/http:conn_pool_interface",
"//include/envoy/local_info:local_info_interface",
"//include/envoy/runtime:runtime_interface",
"@envoy_api//envoy/api/v2:cds_cc",
"@envoy_api//envoy/config/bootstrap/v2:bootstrap_cc",
],
)

Expand All @@ -43,12 +41,12 @@ envoy_cc_library(
envoy_cc_library(
name = "host_description_interface",
hdrs = ["host_description.h"],
external_deps = ["envoy_base"],
deps = [
":health_check_host_monitor_interface",
":outlier_detection_interface",
"//include/envoy/network:address_interface",
"//include/envoy/stats:stats_macros",
"@envoy_api//envoy/api/v2:base_cc",
],
)

Expand All @@ -64,9 +62,9 @@ envoy_cc_library(
envoy_cc_library(
name = "load_balancer_type_interface",
hdrs = ["load_balancer_type.h"],
external_deps = ["envoy_cds"],
deps = [
"//source/common/protobuf",
"@envoy_api//envoy/api/v2:cds_cc",
],
)

Expand Down
16 changes: 7 additions & 9 deletions include/envoy/upstream/cluster_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <unordered_map>

#include "envoy/access_log/access_log.h"
#include "envoy/api/v2/cds.pb.h"
#include "envoy/config/bootstrap/v2/bootstrap.pb.h"
#include "envoy/config/grpc_mux.h"
#include "envoy/grpc/async_client_manager.h"
#include "envoy/http/async_client.h"
Expand All @@ -17,9 +19,6 @@
#include "envoy/upstream/thread_local_cluster.h"
#include "envoy/upstream/upstream.h"

#include "api/bootstrap.pb.h"
#include "api/cds.pb.h"

namespace Envoy {
namespace Upstream {

Expand Down Expand Up @@ -193,12 +192,11 @@ class ClusterManagerFactory {
/**
* Allocate a cluster manager from configuration proto.
*/
virtual ClusterManagerPtr clusterManagerFromProto(const envoy::api::v2::Bootstrap& bootstrap,
Stats::Store& stats, ThreadLocal::Instance& tls,
Runtime::Loader& runtime,
Runtime::RandomGenerator& random,
const LocalInfo::LocalInfo& local_info,
AccessLog::AccessLogManager& log_manager) PURE;
virtual ClusterManagerPtr
clusterManagerFromProto(const envoy::config::bootstrap::v2::Bootstrap& bootstrap,
Stats::Store& stats, ThreadLocal::Instance& tls, Runtime::Loader& runtime,
Runtime::RandomGenerator& random, const LocalInfo::LocalInfo& local_info,
AccessLog::AccessLogManager& log_manager) PURE;

/**
* Allocate an HTTP connection pool.
Expand Down
7 changes: 3 additions & 4 deletions include/envoy/upstream/host_description.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,21 @@
#include <memory>
#include <string>

#include "envoy/api/v2/base.pb.h"
#include "envoy/network/address.h"
#include "envoy/stats/stats_macros.h"
#include "envoy/upstream/health_check_host_monitor.h"
#include "envoy/upstream/outlier_detection.h"

#include "api/base.pb.h"

namespace Envoy {
namespace Upstream {

/**
* All per host stats. @see stats_macros.h
*
* {rq_success, rq_error} have specific semantics driven by the needs of EDS load reporting. See
* envoy.api.v2.UpstreamLocalityStats for the definitions of success/error. These are latched by
* LoadStatsReporter, independent of the normal stats sink flushing.
* envoy.api.v2.endpoint.UpstreamLocalityStats for the definitions of success/error. These are
* latched by LoadStatsReporter, independent of the normal stats sink flushing.
*/
// clang-format off
#define ALL_HOST_STATS(COUNTER, GAUGE) \
Expand Down
4 changes: 2 additions & 2 deletions include/envoy/upstream/load_balancer_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#include <string>
#include <vector>

#include "common/protobuf/protobuf.h"
#include "envoy/api/v2/cds.pb.h"

#include "api/cds.pb.h"
#include "common/protobuf/protobuf.h"

namespace Envoy {
namespace Upstream {
Expand Down
Loading