This repository has been archived by the owner on Dec 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 88
/
all_extensions.bzl
52 lines (39 loc) · 2.17 KB
/
all_extensions.bzl
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
load("@bazel_skylib//lib:dicts.bzl", "dicts")
load("@envoy_build_config//:extensions_build_config.bzl", "EXTENSIONS")
# These extensions are registered using the extension system but are required for the core Envoy build.
# The map may be overridden by extensions specified in envoy_build_config.
_required_extensions = {
"envoy.common.crypto.utility_lib": "//source/extensions/common/crypto:utility_lib",
"envoy.transport_sockets.tls": "//source/extensions/transport_sockets/tls:config",
}
# Return all extensions to be compiled into Envoy.
def envoy_all_extensions(denylist = []):
all_extensions = dicts.add(_required_extensions, EXTENSIONS)
# These extensions can be removed on a site specific basis.
return [v for k, v in all_extensions.items() if not k in denylist]
# Core extensions needed to run Envoy's integration tests.
_core_extensions = [
"envoy.access_loggers.file",
"envoy.filters.http.router",
"envoy.filters.http.health_check",
"envoy.filters.network.http_connection_manager",
"envoy.stat_sinks.statsd",
"envoy.transport_sockets.raw_buffer",
]
# Return all core extensions to be compiled into Envoy.
def envoy_all_core_extensions():
all_extensions = dicts.add(_required_extensions, EXTENSIONS)
# These extensions can be removed on a site specific basis.
return [v for k, v in all_extensions.items() if k in _core_extensions]
_http_filter_prefix = "envoy.filters.http"
def envoy_all_http_filters():
all_extensions = dicts.add(_required_extensions, EXTENSIONS)
return [v for k, v in all_extensions.items() if k.startswith(_http_filter_prefix)]
# All network-layer filters are extensions with names that have the following prefix.
_network_filter_prefix = "envoy.filters.network"
# All thrift filters are extensions with names that have the following prefix.
_thrift_filter_prefix = "envoy.filters.thrift"
# Return all network-layer filter extensions to be compiled into network-layer filter generic fuzzer.
def envoy_all_network_filters():
all_extensions = dicts.add(_required_extensions, EXTENSIONS)
return [v for k, v in all_extensions.items() if k.startswith(_network_filter_prefix) or k.startswith(_thrift_filter_prefix)]