From 472ca3b27991e165d4be9f058798d59badab1bdb Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Tue, 24 Sep 2024 10:09:25 -0400 Subject: [PATCH] skip control plane nodes, they may not have GPUs Signed-off-by: Davanum Srinivas --- test/e2e/node/gpu.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/e2e/node/gpu.go b/test/e2e/node/gpu.go index ca84cd1008b..acac83ea21f 100644 --- a/test/e2e/node/gpu.go +++ b/test/e2e/node/gpu.go @@ -300,6 +300,9 @@ func areGPUsAvailableOnAllSchedulableNodes(ctx context.Context, clientSet client if node.Spec.Unschedulable { continue } + if _, ok := node.Labels[framework.ControlPlaneLabel]; ok { + continue + } framework.Logf("gpuResourceName %s", e2egpu.NVIDIAGPUResourceName) if val, ok := node.Status.Capacity[e2egpu.NVIDIAGPUResourceName]; !ok || val.Value() == 0 { framework.Logf("Nvidia GPUs not available on Node: %q", node.Name)