mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 19:47:56 +00:00
skip control plane nodes, they may not have GPUs
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
parent
349c7136c9
commit
472ca3b279
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user