Skip to content

Commit

Permalink
xds: move "_experimental" to suffix for all balancers (#3356)
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl authored Feb 3, 2020
1 parent 77bc3d3 commit e0e0cbc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions xds/internal/balancer/cdsbalancer/cdsbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ import (
)

const (
cdsName = "experimental_cds"
edsName = "experimental_eds"
cdsName = "cds_experimental"
edsName = "eds_experimental"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion xds/internal/balancer/cdsbalancer/cdsbalancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func cdsCCS(cluster string, xdsClient interface{}) balancer.ClientConnState {
const cdsLBConfig = `{
"loadBalancingConfig":[
{
"experimental_cds":{
"cds_experimental":{
"Cluster": %s
}
}
Expand Down
2 changes: 1 addition & 1 deletion xds/internal/balancer/edsbalancer/eds.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import (

const (
defaultTimeout = 10 * time.Second
edsName = "experimental_eds"
edsName = "eds_experimental"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion xds/internal/balancer/edsbalancer/xds_old.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func init() {
}

// 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 {
edsBalancerBuilder
}
Expand Down
2 changes: 1 addition & 1 deletion xds/internal/resolver/xds_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ type xdsResolver struct {
const jsonFormatSC = `{
"loadBalancingConfig":[
{
"experimental_cds":{
"cds_experimental":{
"Cluster": "%s"
}
}
Expand Down

0 comments on commit e0e0cbc

Please sign in to comment.