diff --git a/test/e2e/auth/pod_security_policy.go b/test/e2e/auth/pod_security_policy.go index d81f8663c71..264a7d258cc 100644 --- a/test/e2e/auth/pod_security_policy.go +++ b/test/e2e/auth/pod_security_policy.go @@ -168,7 +168,7 @@ func testPrivilegedPods(tester func(pod *v1.Pod)) { tester(hostipc) }) - if isAppArmorSupported() { + if isAppArmorSupported() && framework.TestContext.ContainerRuntime == "docker" { ginkgo.By("Running a custom AppArmor profile pod", func() { aa := restrictedPod("apparmor") // Every node is expected to have the docker-default profile.