diff --git a/test/e2e/framework/psp_util.go b/test/e2e/framework/psp_util.go index d3938c90e83..bb8d0dadc9b 100644 --- a/test/e2e/framework/psp_util.go +++ b/test/e2e/framework/psp_util.go @@ -97,7 +97,7 @@ var ( ) func CreatePrivilegedPSPBinding(f *Framework, namespace string) { - if !IsPodSecurityPolicyEnabled(f) { + if !IsPodSecurityPolicyEnabled(f) || !IsRBACEnabled(f) { return } // Create the privileged PSP & role