File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,8 @@ func createLocations(
280
280
281
281
mirrorPercentage , exists := mirrorPathToPercentage [rule .Path ]
282
282
if ! exists {
283
+ // need a way to differentiate between no mirror filter and a mirror filter with 0 percent set, and
284
+ // I don't want to pass an extra boolean around.
283
285
mirrorPercentage = - 1
284
286
}
285
287
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ type HTTPRequestMirrorFilter struct {
215
215
Name * string
216
216
// Namespace is the namespace of the service.
217
217
Namespace * string
218
- // Target is the target of the mirror (path with hostname, service name and route NamespacedName).
218
+ // Target is the target of the mirror (path with hostname, service name, and route NamespacedName).
219
219
Target * string
220
220
// Percent is the percentage of requests to mirror.
221
221
Percent * float64
You can’t perform that action at this time.
0 commit comments