Skip to content

Commit 187fa36

Browse files
#292 Traffic splitting - Updated param name
1 parent 2b63f78 commit 187fa36

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/SnapshotProperties.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ class CanaryProperties {
158158
class TrafficSplittingProperties {
159159
var zoneName = ""
160160
var serviceByWeightsProperties: Map<String, ZoneWeights> = mapOf()
161-
var secondaryClusterPostfix = "secondary"
162-
var aggregateClusterPostfix = "aggregate"
161+
var secondaryClusterSuffix = "secondary"
162+
var aggregateClusterSuffix = "aggregate"
163163
}
164164

165165
class ZoneWeights {

envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/resource/clusters/EnvoyClustersFactory.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ class EnvoyClustersFactory(
8282

8383
@JvmStatic
8484
fun getSecondaryClusterName(serviceName: String, snapshotProperties: SnapshotProperties): String {
85-
return "$serviceName-${snapshotProperties.loadBalancing.trafficSplitting.secondaryClusterPostfix}"
85+
return "$serviceName-${snapshotProperties.loadBalancing.trafficSplitting.secondaryClusterSuffix}"
8686
}
8787

8888
@JvmStatic
8989
fun getAggregateClusterName(serviceName: String, snapshotProperties: SnapshotProperties): String {
90-
return "$serviceName-${snapshotProperties.loadBalancing.trafficSplitting.aggregateClusterPostfix}"
90+
return "$serviceName-${snapshotProperties.loadBalancing.trafficSplitting.aggregateClusterSuffix}"
9191
}
9292
}
9393

0 commit comments

Comments
 (0)