Преглед изворни кода

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 година
родитељ
комит
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.
 	// 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.
 // toResourceUnitValue accepts a resource name and quantity and returns the sanitized resource, the unit, and the value in the units.