remove PDB v1beta1 usage where v1 is equivalent

This commit is contained in:
David Eads
2022-03-21 15:11:05 -04:00
parent 233e0cb8c3
commit d323a30f60
3 changed files with 7 additions and 7 deletions

View File

@@ -99,7 +99,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.PolicyV1beta1().PodSecurityPolicies().List(context.TODO(), metav1.ListOptions{}); err != nil {
if _, err := client.StorageV1beta1().CSIStorageCapacities("default").List(context.TODO(), metav1.ListOptions{}); err != nil {
t.Fatalf("unexpected error getting rbac roles: %v", err)
}