mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
critial pod test uses allocatable instead of capacity
This commit is contained in:
parent
0796d5c0d8
commit
5fa6515509
@ -111,7 +111,7 @@ func getNodeCPUAndMemoryCapacity(f *framework.Framework) v1.ResourceList {
|
|||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
// Assuming that there is only one node, because this is a node e2e test.
|
// Assuming that there is only one node, because this is a node e2e test.
|
||||||
Expect(len(nodeList.Items)).To(Equal(1))
|
Expect(len(nodeList.Items)).To(Equal(1))
|
||||||
capacity := nodeList.Items[0].Status.Capacity
|
capacity := nodeList.Items[0].Status.Allocatable
|
||||||
return v1.ResourceList{
|
return v1.ResourceList{
|
||||||
v1.ResourceCPU: capacity[v1.ResourceCPU],
|
v1.ResourceCPU: capacity[v1.ResourceCPU],
|
||||||
v1.ResourceMemory: capacity[v1.ResourceMemory],
|
v1.ResourceMemory: capacity[v1.ResourceMemory],
|
||||||
|
Loading…
Reference in New Issue
Block a user