mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 03:08:15 +00:00
cleanup: Refactor BaseEndpointInfo to cache IP and Port values
This commit is contained in:
@@ -1066,9 +1066,9 @@ func (proxier *Proxier) syncProxyRules() {
|
||||
continue
|
||||
}
|
||||
epIP := ep.IP()
|
||||
epPort, err := ep.Port()
|
||||
epPort := ep.Port()
|
||||
// Error parsing this endpoint has been logged. Skip to next endpoint.
|
||||
if epIP == "" || err != nil {
|
||||
if epIP == "" || epPort == 0 {
|
||||
continue
|
||||
}
|
||||
entry := &utilipset.Entry{
|
||||
|
||||
Reference in New Issue
Block a user