Skip to content

Commit 8248ac9

Browse files
committed
Add some comments
1 parent 4864b34 commit 8248ac9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

internal/controller/nginx/config/servers.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ func createLocations(
280280

281281
mirrorPercentage, exists := mirrorPathToPercentage[rule.Path]
282282
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.
283285
mirrorPercentage = -1
284286
}
285287

internal/controller/state/dataplane/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ type HTTPRequestMirrorFilter struct {
213213
Name *string
214214
// Namespace is the namespace of the service.
215215
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).
217217
Target *string
218218
// Percent is the percentage of requests to mirror.
219219
Percent *float64

0 commit comments

Comments
 (0)