Parcourir la source

Emit empty string instead of <none> for storageclass label on kube_persistentvolumeclaim_info to match KSM changes

Signed-off-by: Niko Kovacevic <nikovacevic@gmail.com>
Niko Kovacevic il y a 2 ans
Parent
commit
7ce27a457f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      pkg/metrics/kubemetrics.go

+ 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.