2
0
Эх сурвалжийг харах

Merge pull request #1025 from kubecost/sean/bugfix/small-issues

incorrect caller
Sean Holcomb 4 жил өмнө
parent
commit
d2ea7c577c

+ 1 - 1
pkg/kubecost/allocation.go

@@ -687,7 +687,7 @@ func (a *Allocation) add(that *Allocation) {
 	// in the case of keys matching but controllers not matching.
 	aggByForKey := []string{"cluster", "node", "namespace", "pod", "container"}
 	leftKey := a.generateKey(aggByForKey, nil)
-	rightKey := a.generateKey(aggByForKey, nil)
+	rightKey := that.generateKey(aggByForKey, nil)
 	leftProperties := a.Properties
 	rightProperties := that.Properties