File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
internal/controller/nginx/config Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -541,8 +541,8 @@ func updateLocationMirrorFilters(
541
541
location .MirrorPaths = deduplicateStrings (location .MirrorPaths )
542
542
}
543
543
544
- // if the mirrorPercentage is 100.0 or negative (we set it to negative when there is no mirror filter because 0.0
545
- // is valid), the split clients variable is not generated, and we want to let all the traffic get mirrored.
544
+ // if mirrorPercentage is nil (no mirror filter configured) or 100.0, the split clients variable is not generated,
545
+ // and we let all traffic get mirrored.
546
546
if mirrorPercentage != nil && * mirrorPercentage != 100.0 {
547
547
location .MirrorSplitClientsVariableName = convertSplitClientVariableName (
548
548
fmt .Sprintf ("%s_%.2f" , path , * mirrorPercentage ),
You can’t perform that action at this time.
0 commit comments