Skip to content

Commit b898266

Browse files
committed
Fix documentation on EndpointSliceCache map
This is not storing by slice name, it is IP. This can be seen from the code and tests.
1 parent 4db8c59 commit b898266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/proxy/endpointslicecache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ type endpointInfo struct {
8080
}
8181

8282
// spToEndpointMap stores groups Endpoint objects by ServicePortName and
83-
// EndpointSlice name.
83+
// IP address.
8484
type spToEndpointMap map[ServicePortName]map[string]Endpoint
8585

8686
// NewEndpointSliceCache initializes an EndpointSliceCache.

0 commit comments

Comments
 (0)