Răsfoiți Sursa

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

incorrect caller
Sean Holcomb 4 ani în urmă
părinte
comite
d2ea7c577c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      pkg/kubecost/allocation.go

+ 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