Skip NVidia GPU test in node e2e CI jobs for containerd and other runtimes

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas 2021-08-03 08:48:44 -04:00
parent 9ff3b7e744
commit 3463c2dfa9
No known key found for this signature in database
GPG Key ID: 80D83A796103BF59

View File

@ -77,6 +77,10 @@ var _ = SIGDescribe("NVIDIA GPU Device Plugin [Feature:GPUDevicePlugin][NodeFeat
ginkgo.Skip("Nvidia GPUs do not exist on the node. Skipping test.")
}
if framework.TestContext.ContainerRuntime != "docker" {
ginkgo.Skip("Test works only with in-tree dockershim. Skipping test.")
}
ginkgo.By("Creating the Google Device Plugin pod for NVIDIA GPU in GKE")
devicePluginPod, err = f.ClientSet.CoreV1().Pods(metav1.NamespaceSystem).Create(context.TODO(), NVIDIADevicePlugin(), metav1.CreateOptions{})
framework.ExpectNoError(err)