Merge pull request #127780 from danwinship/deleted-udp-endpoints-fix

Fix deleted UDP endpoint detection
This commit is contained in:
Kubernetes Prow Robot 2024-10-01 22:06:02 +01:00 committed by GitHub
commit 8539497010
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
}