Merge pull request #116906 from pacoxu/fix-deprecated-metrics

Fix deprecated metrics
This commit is contained in:
Kubernetes Prow Robot
2023-03-24 05:10:32 -07:00
committed by GitHub

View File

@@ -118,12 +118,7 @@ func countSkipTLSMetric(insecureSkipTLSVerifyBackend bool) {
}
counter.Inc()
deprecatedCounter, err := deprecatedPodLogsUsage.GetMetricWithLabelValues(usageType)
if err != nil {
utilruntime.HandleError(err)
return
}
deprecatedCounter.Inc()
deprecatedPodLogsUsage.WithLabelValues(usageType).Inc()
}
// NewGetOptions creates a new options object