@@ -384,14 +384,29 @@ func createInferExt(k8sClient client.Client, filePath string) {
384
384
ginkgo .By ("Creating inference extension resources from manifest: " + filePath )
385
385
createObjsFromYaml (k8sClient , outManifests )
386
386
387
+ // Wait for the serviceaccount to exist.
388
+ testutils .EventuallyExists (ctx , func () error {
389
+ return k8sClient .Get (ctx , types.NamespacedName {Name : inferExtName }, & corev1.ServiceAccount {})
390
+ }, existsTimeout , interval )
391
+
392
+ // Wait for the role to exist.
393
+ testutils .EventuallyExists (ctx , func () error {
394
+ return k8sClient .Get (ctx , types.NamespacedName {Name : "pod-read" }, & rbacv1.Role {})
395
+ }, existsTimeout , interval )
396
+
397
+ // Wait for the rolebinding to exist.
398
+ testutils .EventuallyExists (ctx , func () error {
399
+ return k8sClient .Get (ctx , types.NamespacedName {Name : "pod-read-binding" }, & rbacv1.RoleBinding {})
400
+ }, existsTimeout , interval )
401
+
387
402
// Wait for the clusterrole to exist.
388
403
testutils .EventuallyExists (ctx , func () error {
389
- return k8sClient .Get (ctx , types.NamespacedName {Name : "pod-read " }, & rbacv1.ClusterRole {})
404
+ return k8sClient .Get (ctx , types.NamespacedName {Name : "auth-reviewer " }, & rbacv1.ClusterRole {})
390
405
}, existsTimeout , interval )
391
406
392
407
// Wait for the clusterrolebinding to exist.
393
408
testutils .EventuallyExists (ctx , func () error {
394
- return k8sClient .Get (ctx , types.NamespacedName {Name : "pod-read -binding" }, & rbacv1.ClusterRoleBinding {})
409
+ return k8sClient .Get (ctx , types.NamespacedName {Name : "auth-reviewer -binding" }, & rbacv1.ClusterRoleBinding {})
395
410
}, existsTimeout , interval )
396
411
397
412
// Wait for the deployment to exist.
0 commit comments