@@ -371,14 +371,29 @@ func createInferExt(k8sClient client.Client, filePath string) {
371
371
ginkgo .By ("Creating inference extension resources from manifest: " + filePath )
372
372
createObjsFromYaml (k8sClient , outManifests )
373
373
374
+ // Wait for the serviceaccount to exist.
375
+ testutils .EventuallyExists (ctx , func () error {
376
+ return k8sClient .Get (ctx , types.NamespacedName {Name : inferExtName }, & corev1.ServiceAccount {})
377
+ }, existsTimeout , interval )
378
+
379
+ // Wait for the role 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 rolebinding 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
+
374
389
// Wait for the clusterrole to exist.
375
390
testutils .EventuallyExists (ctx , func () error {
376
- return k8sClient .Get (ctx , types.NamespacedName {Name : "pod-read " }, & rbacv1.ClusterRole {})
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