Przeglądaj źródła

remove label= from label values for allocations

Signed-off-by: nickcurie <nick.curie64@gmail.com>
nickcurie 3 lat temu
rodzic
commit
e9d2c57560
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      pkg/kubecost/allocationprops.go

+ 1 - 1
pkg/kubecost/allocationprops.go

@@ -298,7 +298,7 @@ func (p *AllocationProperties) GenerateKey(aggregateBy []string, labelConfig *La
 			} else {
 			} else {
 				labelName := labelConfig.Sanitize(strings.TrimPrefix(agg, "label:"))
 				labelName := labelConfig.Sanitize(strings.TrimPrefix(agg, "label:"))
 				if labelValue, ok := labels[labelName]; ok {
 				if labelValue, ok := labels[labelName]; ok {
-					names = append(names, fmt.Sprintf("%s=%s", labelName, labelValue))
+					names = append(names, fmt.Sprintf("%s", labelValue))
 				} else {
 				} else {
 					names = append(names, UnallocatedSuffix)
 					names = append(names, UnallocatedSuffix)
 				}
 				}