Fix documentation on EndpointSliceCache map

This is not storing by slice name, it is IP. This can be seen from the
code and tests.
This commit is contained in:
John Howard 2020-10-06 10:24:09 -07:00
parent 4db8c590ac
commit b898266cb1

View File

@ -80,7 +80,7 @@ type endpointInfo struct {
}
// spToEndpointMap stores groups Endpoint objects by ServicePortName and
// EndpointSlice name.
// IP address.
type spToEndpointMap map[ServicePortName]map[string]Endpoint
// NewEndpointSliceCache initializes an EndpointSliceCache.