Skip to content

Commit

Permalink
proposed fix for failover group naming errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurret committed Oct 24, 2023
1 parent c8af477 commit 8822109
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ func (b *Builder) buildDestination(
clusterName := fmt.Sprintf("%s.%s", portName, sni)

egName := ""

if details.FailoverConfig != nil {
egName = fmt.Sprintf("%s%d~%s", xdscommon.FailoverClusterNamePrefix, 0, clusterName)
}
Expand Down
3 changes: 1 addition & 2 deletions internal/mesh/internal/controllers/xds/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1012,8 +1012,7 @@ func (suite *xdsControllerTestSuite) TestReconcile_SidecarProxyGoldenFileInputs(
"destination/l4-multi-destination",
"destination/l4-multiple-implicit-destinations-tproxy",
"destination/l4-implicit-and-explicit-destinations-tproxy",
// TODO(jm): resolve the endpoint group naming issue
//"destination/mixed-multi-destination",
"destination/mixed-multi-destination",
"destination/multiport-l4-and-l7-multiple-implicit-destinations-tproxy",
"destination/multiport-l4-and-l7-single-implicit-destination-tproxy",
"destination/multiport-l4-and-l7-single-implicit-destination-with-multiple-workloads-tproxy",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
}
}
}
}
},
"name": "failover-target~0~http.api-1.default.dc1.internal.foo.consul"
},
{
"dynamic": {
Expand All @@ -53,7 +54,7 @@
}
}
},
"name": "failover-target~0~http.api-1.default.dc1.internal.foo.consul"
"name": "failover-target~1~http.api-1.default.dc1.internal.foo.consul"
}
]
},
Expand Down Expand Up @@ -330,7 +331,7 @@
}
]
},
"tcp2.api-1.default.dc1.internal.foo.consul": {
"http.api-1.default.dc1.internal.foo.consul": {
"endpoints": [
{
"healthStatus": "HEALTH_STATUS_HEALTHY",
Expand All @@ -341,7 +342,7 @@
}
]
},
"tcp2.api-2.default.dc1.internal.foo.consul": {
"http.api-2.default.dc1.internal.foo.consul": {
"endpoints": [
{
"healthStatus": "HEALTH_STATUS_HEALTHY",
Expand Down

0 comments on commit 8822109

Please sign in to comment.