mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 03:38:15 +00:00
cleanup: Refactor BaseEndpointInfo to cache IP and Port values
This commit is contained in:
@@ -111,7 +111,7 @@ type Endpoint interface {
|
||||
// IP returns IP part of the endpoint.
|
||||
IP() string
|
||||
// Port returns the Port part of the endpoint.
|
||||
Port() (int, error)
|
||||
Port() int
|
||||
|
||||
// IsLocal returns true if the endpoint is running on the same host as kube-proxy.
|
||||
IsLocal() bool
|
||||
|
||||
Reference in New Issue
Block a user