mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +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)
|
const nobodyUser = int64(65534)
|
||||||
|
|
||||||
var _ = SIGDescribe("PodSecurityPolicy", func() {
|
var _ = SIGDescribe("PodSecurityPolicy [Feature:PodSecurityPolicy]", func() {
|
||||||
f := framework.NewDefaultFramework("podsecuritypolicy")
|
f := framework.NewDefaultFramework("podsecuritypolicy")
|
||||||
f.SkipPrivilegedPSPBinding = true
|
f.SkipPrivilegedPSPBinding = true
|
||||||
|
|
||||||
@ -54,7 +54,8 @@ var _ = SIGDescribe("PodSecurityPolicy", func() {
|
|||||||
var ns string // Test namespace, for convenience
|
var ns string // Test namespace, for convenience
|
||||||
ginkgo.BeforeEach(func() {
|
ginkgo.BeforeEach(func() {
|
||||||
if !framework.IsPodSecurityPolicyEnabled(f.ClientSet) {
|
if !framework.IsPodSecurityPolicyEnabled(f.ClientSet) {
|
||||||
e2eskipper.Skipf("PodSecurityPolicy not enabled")
|
framework.Failf("PodSecurityPolicy not enabled")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
if !auth.IsRBACEnabled(f.ClientSet.RbacV1()) {
|
if !auth.IsRBACEnabled(f.ClientSet.RbacV1()) {
|
||||||
e2eskipper.Skipf("RBAC not enabled")
|
e2eskipper.Skipf("RBAC not enabled")
|
||||||
|
Loading…
Reference in New Issue
Block a user