Skip to content

Commit

Permalink
meta about deleted pods expires too
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryRomanov committed Feb 20, 2025
1 parent ce6bcdd commit 98a07ec
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions plugin/input/k8s/meta/gatherer.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,6 @@ func getExpiredItems(out []*MetaItem) []*MetaItem {
// find pods which aren't in k8s pod list for some time and add them to the expiration list
for ns, podNames := range MetaData {
for pod, containerIDs := range podNames {
isDeleted := deletedPodsCache.Contains(pod)
if isDeleted {
// information about deleted pods will never change again
continue
}
for cid, podData := range containerIDs {
if now.Sub(podData.updateTime) > MetaExpireDuration {
out = append(out, &MetaItem{
Expand Down

0 comments on commit 98a07ec

Please sign in to comment.