mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-17 15:27:42 +00:00
The MetricsGrabber checked whether a component supported metrics grabbing, but then tests didn't have an API to use the result of that check. Because metrics grabbing is an optional debug feature, tests must skip checks that depend on metrics data or, when the entire test is about metrics data, skip the test. This is now supported with a special error that gets wrapped and returned by the individual Grab functions.