Skip to content

Commit 1abb570

Browse files
#292 Traffic splitting - Updated param name (#399)
* #292 Traffic splitting - Updated param name
1 parent 2b63f78 commit 1abb570

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
Lists all changes with user impact.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
55

6+
## [0.20.2]
7+
8+
### Changed
9+
- Updated property names: secondaryClusterPostfix is changed to secondaryClusterSuffix,
10+
- aggregateClusterPostfix is changed to aggregateClusterSuffix
11+
612
## [0.20.1]
713

814
### 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)