mirror of https://github.com/grpc/grpc-java.git
xds: Fix pretty-print of Cluster with WrrLocality and LB policies (#12037)
This commit is contained in:
parent
454f1c5c6a
commit
6baac45bd2
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
package io.grpc.xds;
|
||||
|
||||
import com.github.xds.type.v3.TypedStruct;
|
||||
import com.google.protobuf.Descriptors.Descriptor;
|
||||
import com.google.protobuf.InvalidProtocolBufferException;
|
||||
import com.google.protobuf.Message;
|
||||
|
|
@ -32,6 +33,8 @@ import io.envoyproxy.envoy.extensions.filters.http.rbac.v3.RBAC;
|
|||
import io.envoyproxy.envoy.extensions.filters.http.rbac.v3.RBACPerRoute;
|
||||
import io.envoyproxy.envoy.extensions.filters.http.router.v3.Router;
|
||||
import io.envoyproxy.envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager;
|
||||
import io.envoyproxy.envoy.extensions.load_balancing_policies.round_robin.v3.RoundRobin;
|
||||
import io.envoyproxy.envoy.extensions.load_balancing_policies.wrr_locality.v3.WrrLocality;
|
||||
import io.envoyproxy.envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext;
|
||||
import io.envoyproxy.envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext;
|
||||
import io.grpc.xds.client.MessagePrettyPrinter;
|
||||
|
|
@ -65,7 +68,10 @@ final class MessagePrinter implements MessagePrettyPrinter {
|
|||
.add(RouteConfiguration.getDescriptor())
|
||||
.add(Cluster.getDescriptor())
|
||||
.add(ClusterConfig.getDescriptor())
|
||||
.add(ClusterLoadAssignment.getDescriptor());
|
||||
.add(ClusterLoadAssignment.getDescriptor())
|
||||
.add(WrrLocality.getDescriptor())
|
||||
.add(TypedStruct.getDescriptor())
|
||||
.add(RoundRobin.getDescriptor());
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
Class<? extends Message> routeLookupClusterSpecifierClass =
|
||||
|
|
|
|||
Loading…
Reference in New Issue