ソースを参照

Add LoadBalancerTotalCost and suggest deprecation of lazy function name

Niko Kovacevic 4 年 前
コミット
f3d3eda484
1 ファイル変更6 行追加0 行削除
  1. 6 0
      pkg/kubecost/allocation.go

+ 6 - 0
pkg/kubecost/allocation.go

@@ -403,7 +403,13 @@ func (a *Allocation) NetworkTotalCost() float64 {
 }
 
 // LBTotalCost calculates total LB cost of Allocation including adjustment
+// TODO deprecate
 func (a *Allocation) LBTotalCost() float64 {
+	return a.LoadBalancerTotalCost()
+}
+
+// LoadBalancerTotalCost calculates total LB cost of Allocation including adjustment
+func (a *Allocation) LoadBalancerTotalCost() float64 {
 	if a == nil {
 		return 0.0
 	}