Avoid running docker specific test in containerd

This commit is contained in:
Davanum Srinivas
2020-02-11 14:32:06 -05:00
parent 574acbe310
commit f26dbc473d

View File

@@ -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.