mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Move PSP tests behind a feature tag
This commit is contained in:
parent
25d241eda2
commit
acf38c5f8a
@ -44,7 +44,7 @@ import (
|
||||
|
||||
const nobodyUser = int64(65534)
|
||||
|
||||
var _ = SIGDescribe("PodSecurityPolicy", func() {
|
||||
var _ = SIGDescribe("PodSecurityPolicy [Feature:PodSecurityPolicy]", func() {
|
||||
f := framework.NewDefaultFramework("podsecuritypolicy")
|
||||
f.SkipPrivilegedPSPBinding = true
|
||||
|
||||
@ -54,7 +54,8 @@ var _ = SIGDescribe("PodSecurityPolicy", func() {
|
||||
var ns string // Test namespace, for convenience
|
||||
ginkgo.BeforeEach(func() {
|
||||
if !framework.IsPodSecurityPolicyEnabled(f.ClientSet) {
|
||||
e2eskipper.Skipf("PodSecurityPolicy not enabled")
|
||||
framework.Failf("PodSecurityPolicy not enabled")
|
||||
return
|
||||
}
|
||||
if !auth.IsRBACEnabled(f.ClientSet.RbacV1()) {
|
||||
e2eskipper.Skipf("RBAC not enabled")
|
||||
|
Loading…
Reference in New Issue
Block a user