Merge pull request #88033 from dims/avoid-running-docker-specific-test-in-containerd

Avoid running docker specific test in containerd
This commit is contained in:
Kubernetes Prow Robot 2020-02-11 23:16:33 -08:00 committed by GitHub
commit 9f58fb790c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.