mirror of https://github.com/k3s-io/k3s
parent
488f0fcda3
commit
adbdbdec49
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue