Skip to content

Commit

Permalink
#292 Traffic splitting - Updated param name (#399)
Browse files Browse the repository at this point in the history
* #292 Traffic splitting - Updated param name
  • Loading branch information
nastassia-dailidava authored Oct 10, 2023
1 parent 2b63f78 commit 1abb570
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
Lists all changes with user impact.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

## [0.20.2]

### Changed
- Updated property names: secondaryClusterPostfix is changed to secondaryClusterSuffix,
- aggregateClusterPostfix is changed to aggregateClusterSuffix

## [0.20.1]

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ class CanaryProperties {
class TrafficSplittingProperties {
var zoneName = ""
var serviceByWeightsProperties: Map<String, ZoneWeights> = mapOf()
var secondaryClusterPostfix = "secondary"
var aggregateClusterPostfix = "aggregate"
var secondaryClusterSuffix = "secondary"
var aggregateClusterSuffix = "aggregate"
}

class ZoneWeights {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ class EnvoyClustersFactory(

@JvmStatic
fun getSecondaryClusterName(serviceName: String, snapshotProperties: SnapshotProperties): String {
return "$serviceName-${snapshotProperties.loadBalancing.trafficSplitting.secondaryClusterPostfix}"
return "$serviceName-${snapshotProperties.loadBalancing.trafficSplitting.secondaryClusterSuffix}"
}

@JvmStatic
fun getAggregateClusterName(serviceName: String, snapshotProperties: SnapshotProperties): String {
return "$serviceName-${snapshotProperties.loadBalancing.trafficSplitting.aggregateClusterPostfix}"
return "$serviceName-${snapshotProperties.loadBalancing.trafficSplitting.aggregateClusterSuffix}"
}
}

Expand Down

0 comments on commit 1abb570

Please sign in to comment.