Przeglądaj źródła

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

nik-kc 11 miesięcy temu
rodzic
commit
405bb69f95
1 zmienionych plików z 1 dodań i 2 usunięć
  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)
 			}