mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 12:32:03 +00:00
Fixed: kube-proxy EndpointSliceCache memory is leaked
Signed-off-by: zhikuodu <duzhk@qq.com>
This commit is contained in:
parent
40f222b620
commit
78b440a74a
@ -149,6 +149,9 @@ func (cache *EndpointSliceCache) checkoutChanges() map[types.NamespacedName]*end
|
||||
}
|
||||
|
||||
delete(esTracker.pending, name)
|
||||
if len(esTracker.applied) == 0 && len(esTracker.pending) == 0 {
|
||||
delete(cache.trackerByServiceMap, serviceNN)
|
||||
}
|
||||
}
|
||||
|
||||
change.current = cache.getEndpointsMap(serviceNN, esTracker.applied)
|
||||
|
Loading…
Reference in New Issue
Block a user