mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
e2e: Only create PSP if RBAC is enabled
Using PSP in e2e tests depend on RBAC being enabled in the cluster and thus PSP should only be used when RBAC is.
This commit is contained in:
parent
e7ad6e6008
commit
3836857229
@ -97,7 +97,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func CreatePrivilegedPSPBinding(f *Framework, namespace string) {
|
func CreatePrivilegedPSPBinding(f *Framework, namespace string) {
|
||||||
if !IsPodSecurityPolicyEnabled(f) {
|
if !IsPodSecurityPolicyEnabled(f) || !IsRBACEnabled(f) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Create the privileged PSP & role
|
// Create the privileged PSP & role
|
||||||
|
Loading…
Reference in New Issue
Block a user