ソースを参照

Revert "Deep Copy Labels (#3206) (#3208)" (#3214)

nik-kc 10 ヶ月 前
コミット
e6a6f3af00
1 ファイル変更1 行追加2 行削除
  1. 1 2
      pkg/costmodel/costmodel.go

+ 1 - 2
pkg/costmodel/costmodel.go

@@ -3,7 +3,6 @@ package costmodel
 import (
 	"errors"
 	"fmt"
-	"maps"
 	"math"
 	"regexp"
 	"strconv"
@@ -387,7 +386,7 @@ func (cm *CostModel) ComputeCostData(cli prometheusClient.Client, cp costAnalyze
 			ns := pod.Namespace
 
 			nsLabels := namespaceLabelsMapping[ns+","+clusterID]
-			podLabels := maps.Clone(pod.Labels)
+			podLabels := pod.Labels
 			if podLabels == nil {
 				podLabels = make(map[string]string)
 			}