Skip to content

Commit

Permalink
added service name to eds config #292
Browse files Browse the repository at this point in the history
  • Loading branch information
nastassia-dailidava committed Sep 18, 2023
1 parent 75cd930 commit 1b53536
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ internal class EnvoyClustersFactoryTest {
}
.anySatisfy {
assertThat(it.name).isEqualTo(SECONDARY_CLUSTER_NAME)
assertThat(it.edsClusterConfig).isEqualTo(cluster1.edsClusterConfig)
}
.anySatisfy {
assertThat(it.name).isEqualTo(AGGREGATE_CLUSTER_NAME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ fun createCluster(
.setType(Cluster.DiscoveryType.EDS)
.setConnectTimeout(Durations.fromMillis(defaultProperties.edsConnectionTimeout.toMillis()))
.setEdsClusterConfig(
Cluster.EdsClusterConfig.newBuilder().setEdsConfig(
ConfigSource.newBuilder().setAds(AggregatedConfigSource.newBuilder())
)
Cluster.EdsClusterConfig.newBuilder()
.setEdsConfig(
ConfigSource.newBuilder().setAds(
AggregatedConfigSource.newBuilder()
)
).setServiceName(clusterName)
)
.setLbPolicy(defaultProperties.loadBalancing.policy)
.setCommonHttpProtocolOptions(
Expand Down

0 comments on commit 1b53536

Please sign in to comment.