Преглед изворни кода

block warning log on idle allocations

Sean Holcomb пре 4 година
родитељ
комит
632c05d665
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      pkg/kubecost/allocation.go

+ 3 - 1
pkg/kubecost/allocation.go

@@ -1124,7 +1124,9 @@ func (as *AllocationSet) AggregateBy(aggregateBy []string, options *AllocationAg
 		for _, alloc := range aggSet.allocations {
 			for _, sharedAlloc := range shareSet.allocations {
 				if _, ok := shareCoefficients[alloc.Name]; !ok {
-					log.Warningf("AllocationSet.AggregateBy: error getting share coefficienct for '%s'", alloc.Name)
+					if !alloc.IsIdle() {
+						log.Warningf("AllocationSet.AggregateBy: error getting share coefficienct for '%s'", alloc.Name)
+					}
 					continue
 				}