Skip to content

Commit 472ca3b

Browse files
committed
skip control plane nodes, they may not have GPUs
Signed-off-by: Davanum Srinivas <[email protected]>
1 parent 349c713 commit 472ca3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/e2e/node/gpu.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ func areGPUsAvailableOnAllSchedulableNodes(ctx context.Context, clientSet client
300300
if node.Spec.Unschedulable {
301301
continue
302302
}
303+
if _, ok := node.Labels[framework.ControlPlaneLabel]; ok {
304+
continue
305+
}
303306
framework.Logf("gpuResourceName %s", e2egpu.NVIDIAGPUResourceName)
304307
if val, ok := node.Status.Capacity[e2egpu.NVIDIAGPUResourceName]; !ok || val.Value() == 0 {
305308
framework.Logf("Nvidia GPUs not available on Node: %q", node.Name)

0 commit comments

Comments
 (0)