mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #89188 from tallclair/psp-tests
Move PSP tests behind a feature tag
This commit is contained in:
commit
b7faac459f
@ -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 !e2eauth.IsRBACEnabled(f.ClientSet.RbacV1()) {
|
||||
e2eskipper.Skipf("RBAC not enabled")
|
||||
|
Loading…
Reference in New Issue
Block a user