Ignore deprecation warnings with //nolint:staticcheck

This commit is contained in:
Hanna Lee
2021-07-15 14:51:31 -04:00
committed by Antonio Ojea
parent 979c4254eb
commit 0f3836dcc5
5 changed files with 7 additions and 0 deletions

View File

@@ -354,6 +354,7 @@ func (s *Server) InstallDefaultHandlers() {
s.addMetricsBucketMatcher("metrics/probes")
s.addMetricsBucketMatcher("metrics/resource")
//lint:ignore SA1019 https://github.com/kubernetes/enhancements/issues/1206
//nolint:staticcheck
s.restfulCont.Handle(metricsPath, legacyregistry.Handler())
// cAdvisor metrics are exposed under the secured handler as well