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
63 changes: 0 additions & 63 deletions bazel/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -130,69 +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",
"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 = "a66448b203e3a4f8ebbea0a5b7beede5c25640f6",
remote = "https://github.com/envoyproxy/data-plane-api",
),
grpc_httpjson_transcoding = dict(
Expand Down
6 changes: 3 additions & 3 deletions include/envoy/config/grpc_mux.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class GrpcMux {
/**
* Start a configuration subscription asynchronously for some API type and resources.
* @param type_url type URL corresponding to xDS API, e.g.
* type.googleapis.com/envoy.api.v2.Cluster.
* type.googleapis.com/envoy.api.v2.cluster.Cluster.
* @param resources vector of resource names to watch for. If this is empty, then all
* resources for type_url will result in callbacks.
* @param callbacks the callbacks to be notified of configuration updates. These must be valid
Expand All @@ -74,15 +74,15 @@ class GrpcMux {
* for LDS or CDS and don't want a flood of updates for RDS or EDS respectively. Discovery
* requests may later be resumed with resume().
* @param type_url type URL corresponding to xDS API, e.g.
* type.googleapis.com/envoy.api.v2.Cluster.
* type.googleapis.com/envoy.api.v2.cluster.Cluster.
*/
virtual void pause(const std::string& type_url) PURE;

/**
* Resume discovery requests for a given API type. This will send a discovery request if one would
* have been sent during the pause.
* @param type_url type URL corresponding to xDS API,
* e.g.type.googleapis.com/envoy.api.v2.Cluster.
* e.g.type.googleapis.com/envoy.api.v2.cluster.Cluster.
*/
virtual void resume(const std::string& type_url) PURE;
};
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
17 changes: 9 additions & 8 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,14 +46,15 @@ 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;

/**
* @return DrainManagerPtr a new drain manager.
* @param drain_type supplies the type of draining to do for the owning listener.
*/
virtual DrainManagerPtr createDrainManager(envoy::api::v2::Listener::DrainType drain_type) PURE;
virtual DrainManagerPtr
createDrainManager(envoy::api::v2::listener::Listener::DrainType drain_type) PURE;

/**
* @return uint64_t a listener tag usable for connection handler tracking.
Expand Down Expand Up @@ -84,7 +84,8 @@ class ListenerManager {
* a duplicate of the existing listener. This routine will throw an EnvoyException if
* there is a fundamental error preventing the listener from being added or updated.
*/
virtual bool addOrUpdateListener(const envoy::api::v2::Listener& config, bool modifiable) PURE;
virtual bool addOrUpdateListener(const envoy::api::v2::listener::Listener& config,
bool modifiable) PURE;

/**
* @return std::vector<std::reference_wrapper<Network::ListenerConfig>> a list of the currently
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/cluster:cluster_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/cluster:cluster_cc",
],
)

Expand Down
Loading