bazel: switch to native proto_library/cc_proto_library. (#201)
This PR follows thru on https://github.com/envoyproxy/envoy/issues/1873 on the data-plane-api side. Also, update the Python validation script and added a test to ensure this is captured in CI to avoid future bit rot. Signed-off-by: Harvey Tuch <htuch@google.com>pull/189/merge
parent
05d16fe66d
commit
d498884402
12 changed files with 118 additions and 93 deletions
@ -0,0 +1,4 @@ |
|||||||
|
exports_files([ |
||||||
|
"http_connection_manager.pb", |
||||||
|
"listeners.pb", |
||||||
|
]) |
@ -1,16 +1,11 @@ |
|||||||
listeners { |
address { |
||||||
address { |
socket_address { |
||||||
named_address { |
|
||||||
protocol: TCP |
protocol: TCP |
||||||
port { |
port_value: 80 |
||||||
value: 80 |
|
||||||
} |
} |
||||||
} |
} |
||||||
} |
filter_chains { |
||||||
filter_chains { |
filters { |
||||||
filter_chain { |
|
||||||
type: READ |
|
||||||
name: "http_connection_manager" |
name: "http_connection_manager" |
||||||
} |
} |
||||||
} |
|
||||||
} |
} |
||||||
|
@ -0,0 +1,8 @@ |
|||||||
|
"""Tests for generate_listeners.""" |
||||||
|
|
||||||
|
import generate_listeners |
||||||
|
|
||||||
|
if __name__ == "__main__": |
||||||
|
generate_listeners.GenerateListeners( |
||||||
|
"examples/service_envoy/listeners.pb", "/dev/stdout", "/dev/stdout", |
||||||
|
iter(["examples/service_envoy/http_connection_manager.pb"])) |
Loading…
Reference in new issue