mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Fix misleading kube-proxy logs about IPversion mismatch.
This commit is contained in:
parent
90f41951cd
commit
1bb55091a1
@ -327,7 +327,7 @@ func (ect *EndpointChangeTracker) endpointsToEndpointsMap(endpoints *v1.Endpoint
|
|||||||
if ect.isIPv6Mode != nil && utilnet.IsIPv6String(addr.IP) != *ect.isIPv6Mode {
|
if ect.isIPv6Mode != nil && utilnet.IsIPv6String(addr.IP) != *ect.isIPv6Mode {
|
||||||
// Emit event on the corresponding service which had a different
|
// Emit event on the corresponding service which had a different
|
||||||
// IP version than the endpoint.
|
// IP version than the endpoint.
|
||||||
utilproxy.LogAndEmitIncorrectIPVersionEvent(ect.recorder, "endpoints", addr.IP, endpoints.Name, endpoints.Namespace, "")
|
utilproxy.LogAndEmitIncorrectIPVersionEvent(ect.recorder, "endpoints", addr.IP, endpoints.Namespace, endpoints.Name, "")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
isLocal := addr.NodeName != nil && *addr.NodeName == ect.hostname
|
isLocal := addr.NodeName != nil && *addr.NodeName == ect.hostname
|
||||||
|
Loading…
Reference in New Issue
Block a user