Skip to content

Commit b35f711

Browse files
rikatzcgorbit
authored andcommitted
Speed up admission hook by eliminating deep copy of Ingresses in CheckIngress (kubernetes#7298) (kubernetes#7333)
Co-authored-by: Kirill Trofimenkov <[email protected]>
1 parent 2bb7b4d commit b35f711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ingress/controller/location.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func updateServerLocations(locations []*ingress.Location) []*ingress.Location {
7171
continue
7272
}
7373

74-
el := *location
74+
var el ingress.Location = *location
7575

7676
// normalize path. Must end in /
7777
location.Path = normalizePrefixPath(location.Path)

0 commit comments

Comments
 (0)