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 @@ -213,7 +213,7 @@ type HTTPRequestMirrorFilter struct {
213
213
Name * string
214
214
// Namespace is the namespace of the service.
215
215
Namespace * string
216
- // Target is the target of the mirror (path with hostname, service name and route NamespacedName).
216
+ // Target is the target of the mirror (path with hostname, service name, and route NamespacedName).
217
217
Target * string
218
218
// Percent is the percentage of requests to mirror.
219
219
Percent * float64
You can’t perform that action at this time.
0 commit comments