remove the legacy test dependency

This removes the import which added a bunch of apparently
old failing tests.
This commit is contained in:
Todd Neal 2023-08-17 12:54:20 -05:00
parent 93bf570d46
commit 577197559a

View File

@ -27,13 +27,19 @@ import (
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/uuid"
admissionapi "k8s.io/pod-security-admission/api"
kubeletconfig "k8s.io/kubernetes/pkg/kubelet/apis/config"
"k8s.io/kubernetes/test/e2e/framework"
e2eoutput "k8s.io/kubernetes/test/e2e/framework/pod/output"
"k8s.io/kubernetes/test/e2e/node"
admissionapi "k8s.io/pod-security-admission/api"
)
// SeccompProcStatusField is the field of /proc/$PID/status referencing the seccomp filter type.
const SeccompProcStatusField = "Seccomp:"
// ProcSelfStatusPath is the path to /proc/self/status.
const ProcSelfStatusPath = "/proc/self/status"
// Serial because the test updates kubelet configuration.
var _ = SIGDescribe("SeccompDefault [Serial] [Feature:SeccompDefault] [LinuxOnly]", func() {
f := framework.NewDefaultFramework("seccompdefault-test")
@ -54,7 +60,7 @@ var _ = SIGDescribe("SeccompDefault [Serial] [Feature:SeccompDefault] [LinuxOnly
{
Name: name,
Image: busyboxImage,
Command: []string{"grep", node.SeccompProcStatusField, node.ProcSelfStatusPath},
Command: []string{"grep", SeccompProcStatusField, ProcSelfStatusPath},
SecurityContext: securityContext,
},
},