mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
@@ -98,7 +98,7 @@ func getGPUsAvailable(f *framework.Framework) int64 {
|
||||
framework.ExpectNoError(err, "getting node list")
|
||||
var gpusAvailable int64
|
||||
for _, node := range nodeList.Items {
|
||||
if val, ok := node.Status.Capacity[gpuResourceName]; ok {
|
||||
if val, ok := node.Status.Allocatable[gpuResourceName]; ok {
|
||||
gpusAvailable += (&val).Value()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user