Просмотр исходного кода

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 лет назад
Родитель
Сommit
3dc0aafc30
1 измененных файлов с 1 добавлено и 1 удалено
  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.