Răsfoiți Sursa

Remove label sanitation from cloud cost agg property parsing

Signed-off-by: Sean Holcomb <seanholcomb@gmail.com>
Sean Holcomb 2 ani în urmă
părinte
comite
60b7e54517
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 2
      core/pkg/opencost/cloudcostprops.go

+ 1 - 2
core/pkg/opencost/cloudcostprops.go

@@ -5,7 +5,6 @@ import (
 	"strings"
 
 	"github.com/opencost/opencost/core/pkg/log"
-	"github.com/opencost/opencost/core/pkg/util/promutil"
 )
 
 type CloudCostProperty string
@@ -70,7 +69,7 @@ func ParseCloudCostProperty(text string) (CloudCostProperty, error) {
 	}
 
 	if strings.HasPrefix(text, "label:") {
-		label := promutil.SanitizeLabelName(strings.TrimSpace(strings.TrimPrefix(text, "label:")))
+		label := strings.TrimSpace(strings.TrimPrefix(text, "label:"))
 		return CloudCostProperty(fmt.Sprintf("label:%s", label)), nil
 	}