nik-kc пре 11 месеци
родитељ
комит
405bb69f95
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      pkg/costmodel/costmodel.go

+ 1 - 2
pkg/costmodel/costmodel.go

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