fix metrics test

This commit is contained in:
Jefftree 2024-12-20 17:48:49 +00:00
parent 6c94adcc63
commit 59fcd7b770

View File

@ -119,7 +119,7 @@ func TestAPIServerMetrics(t *testing.T) {
}
// Make a request to a deprecated API to ensure there's at least one data point
if _, err := client.FlowcontrolV1beta3().FlowSchemas().List(context.TODO(), metav1.ListOptions{}); err != nil {
if _, err := client.AdmissionregistrationV1beta1().ValidatingAdmissionPolicies().List(context.TODO(), metav1.ListOptions{}); err != nil {
t.Fatalf("unexpected error: %v", err)
}