mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-05 03:03:40 +00:00
[PodSecurity] Avoid the LegcayRegistry for metrics serving
This commit is contained in:
@@ -342,4 +342,8 @@ func validateMetrics(t *testing.T, rawMetrics []byte) {
|
||||
"decision", "policy_level", "policy_version", "mode", "request_operation", "resource", "subresource"); err != nil {
|
||||
t.Errorf("Metric validation failed: %v", err)
|
||||
}
|
||||
if err := testutil.ValidateMetrics(metrics, "pod_security_exemptions_total",
|
||||
"request_operation", "resource", "subresource"); err != nil {
|
||||
t.Errorf("Metric validation failed: %v", err)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user