Skip to content

Commit ceb0387

Browse files
committed
Update PodSecurityLevel used during tests
1 parent 410e8e1 commit ceb0387

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

test/e2e/apimachinery/generated_clientset.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func observerUpdate(w watch.Interface, expectedUpdate func(runtime.Object) bool)
102102

103103
var _ = SIGDescribe("Generated clientset", func() {
104104
f := framework.NewDefaultFramework("clientset")
105-
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelBaseline
105+
f.NamespacePodSecurityLevel = admissionapi.LevelBaseline
106106
ginkgo.It("should create pods, set the deletionTimestamp and deletionGracePeriodSeconds of the pod", func(ctx context.Context) {
107107
podClient := f.ClientSet.CoreV1().Pods(f.Namespace.Name)
108108
ginkgo.By("constructing the pod")
@@ -215,7 +215,7 @@ func newTestingCronJob(name string, value string) *batchv1.CronJob {
215215

216216
var _ = SIGDescribe("Generated clientset", func() {
217217
f := framework.NewDefaultFramework("clientset")
218-
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelPrivileged
218+
f.NamespacePodSecurityLevel = admissionapi.LevelPrivileged
219219

220220
ginkgo.It("should create v1 cronJobs, delete cronJobs, watch cronJobs", func(ctx context.Context) {
221221
cronJobClient := f.ClientSet.BatchV1().CronJobs(f.Namespace.Name)

test/e2e/common/node/lifecycle_hook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ func getSidecarPodWithHook(name string, image string, lifecycle *v1.Lifecycle) *
549549

550550
var _ = SIGDescribe(feature.PodLifecycleSleepAction, func() {
551551
f := framework.NewDefaultFramework("pod-lifecycle-sleep-action")
552-
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelBaseline
552+
f.NamespacePodSecurityLevel = admissionapi.LevelBaseline
553553
var podClient *e2epod.PodClient
554554

555555
validDuration := func(duration time.Duration, low, high int64) bool {

test/e2e/common/node/security_context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ var _ = SIGDescribe("Security Context", func() {
638638

639639
var _ = SIGDescribe("User Namespaces for Pod Security Standards [LinuxOnly]", func() {
640640
f := framework.NewDefaultFramework("user-namespaces-pss-test")
641-
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelRestricted
641+
f.NamespacePodSecurityLevel = admissionapi.LevelRestricted
642642

643643
ginkgo.Context("with UserNamespacesSupport and UserNamespacesPodSecurityStandards enabled", func() {
644644
f.It("should allow pod", feature.UserNamespacesPodSecurityStandards, func(ctx context.Context) {

test/e2e/instrumentation/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535

3636
var _ = common.SIGDescribe("Metrics", func() {
3737
f := framework.NewDefaultFramework("metrics")
38-
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelPrivileged
38+
f.NamespacePodSecurityLevel = admissionapi.LevelPrivileged
3939
var c, ec clientset.Interface
4040
var grabber *e2emetrics.Grabber
4141
ginkgo.BeforeEach(func(ctx context.Context) {

test/e2e_node/container_lifecycle_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ var _ = SIGDescribe(framework.WithNodeConformance(), "Containers Lifecycle", fun
909909

910910
var _ = SIGDescribe(framework.WithSerial(), "Containers Lifecycle", func() {
911911
f := framework.NewDefaultFramework("containers-lifecycle-test-serial")
912-
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelPrivileged
912+
f.NamespacePodSecurityLevel = admissionapi.LevelPrivileged
913913

914914
ginkgo.It("should restart the containers in right order after the node reboot", func(ctx context.Context) {
915915
init1 := "init-1"
@@ -1049,7 +1049,7 @@ var _ = SIGDescribe(framework.WithSerial(), "Containers Lifecycle", func() {
10491049

10501050
var _ = SIGDescribe(nodefeature.SidecarContainers, "Containers Lifecycle", func() {
10511051
f := framework.NewDefaultFramework("containers-lifecycle-test")
1052-
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelPrivileged
1052+
f.NamespacePodSecurityLevel = admissionapi.LevelPrivileged
10531053

10541054
ginkgo.When("using a Pod with restartPolicy=Never, three init container and two restartable init containers", ginkgo.Ordered, func() {
10551055

@@ -3123,7 +3123,7 @@ var _ = SIGDescribe(nodefeature.SidecarContainers, "Containers Lifecycle", func(
31233123

31243124
var _ = SIGDescribe(nodefeature.SidecarContainers, framework.WithSerial(), "Containers Lifecycle", func() {
31253125
f := framework.NewDefaultFramework("containers-lifecycle-test-serial")
3126-
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelPrivileged
3126+
f.NamespacePodSecurityLevel = admissionapi.LevelPrivileged
31273127

31283128
ginkgo.It("should restart the containers in right order after the node reboot", func(ctx context.Context) {
31293129
init1 := "init-1"

test/e2e_node/memory_manager_metrics_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636

3737
var _ = SIGDescribe("Memory Manager Metrics", framework.WithSerial(), feature.MemoryManager, func() {
3838
f := framework.NewDefaultFramework("memorymanager-metrics")
39-
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelPrivileged
39+
f.NamespacePodSecurityLevel = admissionapi.LevelPrivileged
4040

4141
ginkgo.Context("when querying /metrics", func() {
4242
var testPod *v1.Pod

test/e2e_node/oomkiller_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const KubeReservedMemory = 0.35
4646

4747
var _ = SIGDescribe("OOMKiller for pod using more memory than node allocatable [LinuxOnly]", framework.WithSerial(), func() {
4848
f := framework.NewDefaultFramework("nodeallocatable-oomkiller-test")
49-
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelPrivileged
49+
f.NamespacePodSecurityLevel = admissionapi.LevelPrivileged
5050

5151
testCases := []testCase{
5252
{

test/e2e_node/swap_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const (
4646

4747
var _ = SIGDescribe("Swap", framework.WithNodeConformance(), "[LinuxOnly]", func() {
4848
f := framework.NewDefaultFramework("swap-test")
49-
f.NamespacePodSecurityEnforceLevel = admissionapi.LevelBaseline
49+
f.NamespacePodSecurityLevel = admissionapi.LevelBaseline
5050

5151
ginkgo.DescribeTable("with configuration", func(qosClass v1.PodQOSClass, memoryRequestEqualLimit bool) {
5252
ginkgo.By(fmt.Sprintf("Creating a pod of QOS class %s. memoryRequestEqualLimit: %t", qosClass, memoryRequestEqualLimit))

0 commit comments

Comments
 (0)