xds: move "_experimental" to suffix for all balancers (#3356)
This commit is contained in:
@ -37,8 +37,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
cdsName = "experimental_cds"
|
cdsName = "cds_experimental"
|
||||||
edsName = "experimental_eds"
|
edsName = "eds_experimental"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -175,7 +175,7 @@ func cdsCCS(cluster string, xdsClient interface{}) balancer.ClientConnState {
|
|||||||
const cdsLBConfig = `{
|
const cdsLBConfig = `{
|
||||||
"loadBalancingConfig":[
|
"loadBalancingConfig":[
|
||||||
{
|
{
|
||||||
"experimental_cds":{
|
"cds_experimental":{
|
||||||
"Cluster": %s
|
"Cluster": %s
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
defaultTimeout = 10 * time.Second
|
defaultTimeout = 10 * time.Second
|
||||||
edsName = "experimental_eds"
|
edsName = "eds_experimental"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -36,7 +36,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// xdsBalancerBuilder register edsBalancerBuilder (now with name
|
// xdsBalancerBuilder register edsBalancerBuilder (now with name
|
||||||
// "experimental_eds") under the old name "xds_experimental".
|
// "eds_experimental") under the old name "xds_experimental".
|
||||||
type xdsBalancerBuilder struct {
|
type xdsBalancerBuilder struct {
|
||||||
edsBalancerBuilder
|
edsBalancerBuilder
|
||||||
}
|
}
|
||||||
|
@ -155,7 +155,7 @@ type xdsResolver struct {
|
|||||||
const jsonFormatSC = `{
|
const jsonFormatSC = `{
|
||||||
"loadBalancingConfig":[
|
"loadBalancingConfig":[
|
||||||
{
|
{
|
||||||
"experimental_cds":{
|
"cds_experimental":{
|
||||||
"Cluster": "%s"
|
"Cluster": "%s"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user