Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcollom authored Aug 15, 2024
1 parent 07daed6 commit 712f2dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (m *Metrics) RemoveImage(namespace, pod, container, containerType string) {
}

m.containerImageVersion.DeletePartialMatch(
m.buildPartialLabels(namespace, pod, container, item.image),
m.buildPartialLabels(namespace, pod),
)
delete(m.containerCache, index)
}
Expand All @@ -151,8 +151,6 @@ func (m *Metrics) buildPartialLabels(namespace, pod, container, imageURL string)
return prometheus.Labels{
"namespace": namespace,
"pod": pod,
"container": container,
"image": imageURL,
}
}

Expand Down

0 comments on commit 712f2dc

Please sign in to comment.