Ver código fonte

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 2 anos atrás
pai
commit
7ce27a457f
1 arquivos alterados com 1 adições e 1 exclusões
  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.