Skip to content

Commit

Permalink
Avoid that a Pod update removes the container metadata (#1156)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariomac authored Sep 10, 2024
1 parent 19139ca commit 2f9cf72
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/internal/transform/kube/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,6 @@ func (id *Database) addPods(pod *kube.PodInfo) {
func (id *Database) deletePods(pod *kube.PodInfo) {
for _, ip := range pod.IPInfo.IPs {
delete(id.podsByIP, ip)
for _, cid := range pod.ContainerIDs {
cnt, ok := id.containerIDs[cid]
delete(id.containerIDs, cid)
if ok {
delete(id.namespaces, cnt.PIDNamespace)
delete(id.fetchedPodsCache, cnt.PIDNamespace)
}
}
}
}

Expand Down

0 comments on commit 2f9cf72

Please sign in to comment.