Skip to content

Commit

Permalink
#292 Traffic splitting - Updated param name
Browse files Browse the repository at this point in the history
  • Loading branch information
nastassia-dailidava committed Oct 6, 2023
1 parent 2b63f78 commit 187fa36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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 187fa36

Please sign in to comment.