2
0
Эх сурвалжийг харах

Merge pull request #2209 from opencost/niko-oc2176

Emit empty string instead of <none> for storageclass label on kube_persistentvolumeclaim_info to match KSM changes
Niko Kovacevic 2 жил өмнө
parent
commit
3dc0aafc30

+ 1 - 1
pkg/metrics/kubemetrics.go

@@ -156,7 +156,7 @@ func getPersistentVolumeClaimClass(claim *v1.PersistentVolumeClaim) string {
 	}
 
 	// Special non-empty string to indicate absence of storage class.
-	return "<none>"
+	return ""
 }
 
 // toResourceUnitValue accepts a resource name and quantity and returns the sanitized resource, the unit, and the value in the units.