Skip to content

Commit ffc1c36

Browse files
committed
Add missing namespace
Signed-off-by: Ernest Wong <[email protected]>
1 parent 491fd38 commit ffc1c36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/epp/e2e_suite_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,17 +386,17 @@ func createInferExt(k8sClient client.Client, filePath string) {
386386

387387
// Wait for the serviceaccount to exist.
388388
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{})
390390
}, existsTimeout, interval)
391391

392392
// Wait for the role to exist.
393393
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{})
395395
}, existsTimeout, interval)
396396

397397
// Wait for the rolebinding to exist.
398398
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{})
400400
}, existsTimeout, interval)
401401

402402
// Wait for the clusterrole to exist.

0 commit comments

Comments
 (0)