@@ -373,12 +373,27 @@ func createInferExt(k8sClient client.Client, filePath string) {
373
373
374
374
// Wait for the clusterrole to exist.
375
375
testutils .EventuallyExists (ctx , func () error {
376
- return k8sClient .Get (ctx , types.NamespacedName {Name : "pod-read" }, & rbacv1.ClusterRole {})
376
+ return k8sClient .Get (ctx , types.NamespacedName {Name : inferExtName }, & corev1.ServiceAccount {})
377
+ }, existsTimeout , interval )
378
+
379
+ // Wait for the clusterrole to exist.
380
+ testutils .EventuallyExists (ctx , func () error {
381
+ return k8sClient .Get (ctx , types.NamespacedName {Name : "pod-read" }, & rbacv1.Role {})
382
+ }, existsTimeout , interval )
383
+
384
+ // Wait for the clusterrolebinding to exist.
385
+ testutils .EventuallyExists (ctx , func () error {
386
+ return k8sClient .Get (ctx , types.NamespacedName {Name : "pod-read-binding" }, & rbacv1.RoleBinding {})
387
+ }, existsTimeout , interval )
388
+
389
+ // Wait for the clusterrole to exist.
390
+ testutils .EventuallyExists (ctx , func () error {
391
+ return k8sClient .Get (ctx , types.NamespacedName {Name : "auth-reviewer" }, & rbacv1.ClusterRole {})
377
392
}, existsTimeout , interval )
378
393
379
394
// Wait for the clusterrolebinding to exist.
380
395
testutils .EventuallyExists (ctx , func () error {
381
- return k8sClient .Get (ctx , types.NamespacedName {Name : "pod-read -binding" }, & rbacv1.ClusterRoleBinding {})
396
+ return k8sClient .Get (ctx , types.NamespacedName {Name : "auth-reviewer -binding" }, & rbacv1.ClusterRoleBinding {})
382
397
}, existsTimeout , interval )
383
398
384
399
// Wait for the deployment to exist.
0 commit comments