mirror of https://github.com/grpc/grpc-go.git
xds: enable RLS in xDS by default (#6343)
This commit is contained in:
parent
47f8ed8172
commit
2b1d70be02
|
|
@ -81,10 +81,10 @@ var (
|
||||||
XDSFederation = boolFromEnv("GRPC_EXPERIMENTAL_XDS_FEDERATION", true)
|
XDSFederation = boolFromEnv("GRPC_EXPERIMENTAL_XDS_FEDERATION", true)
|
||||||
|
|
||||||
// XDSRLS indicates whether processing of Cluster Specifier plugins and
|
// XDSRLS indicates whether processing of Cluster Specifier plugins and
|
||||||
// support for the RLS CLuster Specifier is enabled, which can be enabled by
|
// support for the RLS CLuster Specifier is enabled, which can be disabled by
|
||||||
// setting the environment variable "GRPC_EXPERIMENTAL_XDS_RLS_LB" to
|
// setting the environment variable "GRPC_EXPERIMENTAL_XDS_RLS_LB" to
|
||||||
// "true".
|
// "false".
|
||||||
XDSRLS = boolFromEnv("GRPC_EXPERIMENTAL_XDS_RLS_LB", false)
|
XDSRLS = boolFromEnv("GRPC_EXPERIMENTAL_XDS_RLS_LB", true)
|
||||||
|
|
||||||
// C2PResolverTestOnlyTrafficDirectorURI is the TD URI for testing.
|
// C2PResolverTestOnlyTrafficDirectorURI is the TD URI for testing.
|
||||||
C2PResolverTestOnlyTrafficDirectorURI = os.Getenv("GRPC_TEST_ONLY_GOOGLE_C2P_RESOLVER_TRAFFIC_DIRECTOR_URI")
|
C2PResolverTestOnlyTrafficDirectorURI = os.Getenv("GRPC_TEST_ONLY_GOOGLE_C2P_RESOLVER_TRAFFIC_DIRECTOR_URI")
|
||||||
|
|
|
||||||
|
|
@ -1299,7 +1299,7 @@ func (s) TestRoutesProtoToSlice(t *testing.T) {
|
||||||
ClusterSpecifier: &v3routepb.RouteAction_ClusterSpecifierPlugin{}}},
|
ClusterSpecifier: &v3routepb.RouteAction_ClusterSpecifierPlugin{}}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
wantRoutes: []*Route{},
|
wantErr: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "default totalWeight is 100 in weighted clusters action",
|
name: "default totalWeight is 100 in weighted clusters action",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue