Просмотр исходного кода

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

incorrect caller
Sean Holcomb 4 лет назад
Родитель
Сommit
d2ea7c577c
1 измененных файлов с 1 добавлено и 1 удалено
  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