mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
rebase: update K8s packages to v0.32.1
Update K8s packages in go.mod to v0.32.1 Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
27
vendor/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go
generated
vendored
27
vendor/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go
generated
vendored
@ -416,6 +416,33 @@ func Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
// ResetLabelAllowLists resets the label allow lists for all metrics.
|
||||
// NOTE: This is only used for testing.
|
||||
func ResetLabelAllowLists() {
|
||||
for _, metric := range metrics {
|
||||
if counterVec, ok := metric.(*compbasemetrics.CounterVec); ok {
|
||||
counterVec.ResetLabelAllowLists()
|
||||
continue
|
||||
}
|
||||
if gaugeVec, ok := metric.(*compbasemetrics.GaugeVec); ok {
|
||||
gaugeVec.ResetLabelAllowLists()
|
||||
continue
|
||||
}
|
||||
if histogramVec, ok := metric.(*compbasemetrics.HistogramVec); ok {
|
||||
histogramVec.ResetLabelAllowLists()
|
||||
continue
|
||||
}
|
||||
if summaryVec, ok := metric.(*compbasemetrics.SummaryVec); ok {
|
||||
summaryVec.ResetLabelAllowLists()
|
||||
continue
|
||||
}
|
||||
if timingHistogramVec, ok := metric.(*compbasemetrics.TimingHistogramVec); ok {
|
||||
timingHistogramVec.ResetLabelAllowLists()
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// UpdateInflightRequestMetrics reports concurrency metrics classified by
|
||||
// mutating vs Readonly.
|
||||
func UpdateInflightRequestMetrics(phase string, nonmutating, mutating int) {
|
||||
|
Reference in New Issue
Block a user