mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
stop using rbac beta in integration tests
This commit is contained in:
parent
60a714058b
commit
aeb6508e1e
@ -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
|
// Make a request to a deprecated API to ensure there's at least one data point
|
||||||
if _, err := client.RbacV1beta1().Roles(metav1.NamespaceDefault).List(context.TODO(), metav1.ListOptions{}); err != nil {
|
if _, err := client.PolicyV1beta1().PodSecurityPolicies().List(context.TODO(), metav1.ListOptions{}); err != nil {
|
||||||
t.Fatalf("unexpected error getting rbac roles: %v", err)
|
t.Fatalf("unexpected error getting rbac roles: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user