Pārlūkot izejas kodu

Revert "Deep Copy Labels (#3206) (#3209)" (#3215)

nik-kc 10 mēneši atpakaļ
vecāks
revīzija
405bb69f95
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  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)
 			}