mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
fix: move to a new way updating an extended resource
This commit is contained in:
parent
ce377efa00
commit
9756a648b0
@ -320,11 +320,7 @@ var _ = SIGDescribe("SchedulerPreemption", framework.WithSerial(), func() {
|
|||||||
// Create pods in the cluster.
|
// Create pods in the cluster.
|
||||||
for i, node := range nodeList.Items {
|
for i, node := range nodeList.Items {
|
||||||
// Update each node to advertise 3 available extended resources
|
// Update each node to advertise 3 available extended resources
|
||||||
nodeCopy := node.DeepCopy()
|
e2enode.AddExtendedResource(ctx, cs, node.Name, testExtendedResource, resource.MustParse("10"))
|
||||||
nodeCopy.Status.Capacity[testExtendedResource] = resource.MustParse("10")
|
|
||||||
nodeCopy.Status.Allocatable[testExtendedResource] = resource.MustParse("10")
|
|
||||||
err := patchNode(ctx, cs, &node, nodeCopy)
|
|
||||||
framework.ExpectNoError(err)
|
|
||||||
|
|
||||||
// Create 10 low priority pods on each node, which will use up 10/10 of the node's resources.
|
// Create 10 low priority pods on each node, which will use up 10/10 of the node's resources.
|
||||||
for j := 0; j < 10; j++ {
|
for j := 0; j < 10; j++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user