Skip to content

Commit

Permalink
update this condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihuanzhu committed Apr 26, 2024
1 parent ccad8e7 commit 144e3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pod/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (cr Collector) getContainerData(c v1.Container, p v1.Pod) container {
setContainer.name = c.Name
matchKey := v1.ResourceName("ephemeral-storage")

if cr.containerVolumeUsage && cr.containerVolumeLimitsPercentage && p.Spec.Volumes != nil {
if (cr.containerVolumeUsage || cr.containerVolumeLimitsPercentage) && p.Spec.Volumes != nil {
collectMounts := false

podMountsMap := make(map[string]float64)
Expand Down

0 comments on commit 144e3b6

Please sign in to comment.