@@ -386,17 +386,17 @@ func createInferExt(k8sClient client.Client, filePath string) {
386
386
387
387
// Wait for the serviceaccount to exist.
388
388
testutils .EventuallyExists (ctx , func () error {
389
- return k8sClient .Get (ctx , types.NamespacedName {Name : inferExtName }, & corev1.ServiceAccount {})
389
+ return k8sClient .Get (ctx , types.NamespacedName {Namespace : nsName , Name : inferExtName }, & corev1.ServiceAccount {})
390
390
}, existsTimeout , interval )
391
391
392
392
// Wait for the role to exist.
393
393
testutils .EventuallyExists (ctx , func () error {
394
- return k8sClient .Get (ctx , types.NamespacedName {Name : "pod-read" }, & rbacv1.Role {})
394
+ return k8sClient .Get (ctx , types.NamespacedName {Namespace : nsName , Name : "pod-read" }, & rbacv1.Role {})
395
395
}, existsTimeout , interval )
396
396
397
397
// Wait for the rolebinding to exist.
398
398
testutils .EventuallyExists (ctx , func () error {
399
- return k8sClient .Get (ctx , types.NamespacedName {Name : "pod-read-binding" }, & rbacv1.RoleBinding {})
399
+ return k8sClient .Get (ctx , types.NamespacedName {Namespace : nsName , Name : "pod-read-binding" }, & rbacv1.RoleBinding {})
400
400
}, existsTimeout , interval )
401
401
402
402
// Wait for the clusterrole to exist.
0 commit comments