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

@@ -624,6 +624,7 @@ func serveMetrics(bindAddress, proxyMode string, enableProfiling bool, errCh cha
})
//lint:ignore SA1019 See the Metrics Stability Migration KEP
//nolint:staticcheck
proxyMux.Handle("/metrics", legacyregistry.Handler())
if enableProfiling {