Remove ability to re-enable serving deprecated storagev1beta1 and storagev1alpha1 APIs

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
This commit is contained in:
carlory
2023-10-31 14:50:31 +08:00
parent bfd67c4454
commit 1186e25a45
3 changed files with 2 additions and 36 deletions

View File

@@ -112,8 +112,8 @@ func TestAPIServerMetrics(t *testing.T) {
}
// Make a request to a deprecated API to ensure there's at least one data point
if _, err := client.StorageV1beta1().CSIStorageCapacities("default").List(context.TODO(), metav1.ListOptions{}); err != nil {
t.Fatalf("unexpected error getting rbac roles: %v", err)
if _, err := client.FlowcontrolV1beta3().FlowSchemas().List(context.TODO(), metav1.ListOptions{}); err != nil {
t.Fatalf("unexpected error: %v", err)
}
metrics, err := scrapeMetrics(s)