Add transport socket config (#218)

Signed-off-by: Lizan Zhou <zlizan@google.com>
pull/223/head
Lizan Zhou 7 years ago committed by Matt Klein
parent af76d6ade5
commit 8484a99255
  1. 13
      api/base.proto
  2. 5
      api/cds.proto
  3. 3
      api/lds.proto

@ -151,3 +151,16 @@ message ConfigSource {
AggregatedConfigSource ads = 3;
}
}
// Configuration for transport socket in listeners and clusters. If the configuration is empty,
// a default transport socket implementation and configuration will be chosen based on the
// platform and existence of tls_context.
message TransportSocket {
// The name of the transport socket to instantiate. The name must match a supported transport
// socket implementation.
string name = 1;
// Implementation specific configuration which depends on the implementation being instantiated.
// See the supported transport socket implementations for further documentation.
google.protobuf.Struct config = 2;
}

@ -273,7 +273,7 @@ message Cluster {
repeated LbSubsetSelector subset_selectors = 3;
}
LbSubsetConfig lb_subset_config = 22;
message RingHashLbConfig {
// Minimum hash ring size, i.e. total virtual nodes. A larger size
// will provide better request distribution since each host in the
@ -298,4 +298,7 @@ message Cluster {
oneof lb_config {
RingHashLbConfig ring_hash_lb_config = 23;
}
// See base.TransportSocket description.
TransportSocket transport_socket = 24;
}

@ -100,6 +100,9 @@ message FilterChain {
// See base.Metadata description.
Metadata metadata = 5;
// See base.TransportSocket description.
TransportSocket transport_socket = 6;
}
message Listener {

Loading…
Cancel
Save