test/e2e/framework: configure pod security admission level for e2e tests

This commit is contained in:
Sergiusz Urbaniak
2022-01-30 13:37:24 +01:00
parent e06e6771ef
commit 373c08e0c7
123 changed files with 297 additions and 4 deletions

View File

@@ -25,6 +25,7 @@ import (
"k8s.io/apimachinery/pkg/util/uuid"
"k8s.io/kubernetes/test/e2e/framework"
e2epod "k8s.io/kubernetes/test/e2e/framework/pod"
admissionapi "k8s.io/pod-security-admission/api"
"fmt"
@@ -33,6 +34,7 @@ import (
var _ = SIGDescribe("Kubelet Volume Manager", func() {
f := framework.NewDefaultFramework("kubelet-volume-manager")
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelPrivileged
ginkgo.Describe("Volume Manager", func() {
ginkgo.Context("On termination of pod with memory backed volume", func() {
ginkgo.It("should remove the volume from the node [NodeConformance]", func() {