Fix deleted UDP endpoint detection

This commit is contained in:
Dan Winship 2024-09-30 14:15:05 -04:00
parent b4ce3a55bc
commit 65de5de81f

View File

@ -308,7 +308,8 @@ func detectStaleConntrackEntries(oldEndpointsMap, newEndpointsMap EndpointsMap,
// serving to not serving. If it did change stale entries for the old
// endpoint have to be cleared.
for i := range newEndpointsMap[svcPortName] {
if newEndpointsMap[svcPortName][i].String() == ep.String() {
if newEndpointsMap[svcPortName][i].String() == ep.String() &&
newEndpointsMap[svcPortName][i].IsServing() == ep.IsServing() {
deleted = false
break
}