Skip to content

Commit 085480a

Browse files
authored
Merge pull request kubernetes-sigs#11004 from vincepri/use-memory-allocatable
🌱 test/framework: scale up should use allocatable memory
2 parents 3327ef7 + a1f370e commit 085480a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/autoscaler_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func AddScaleUpDeploymentAndWait(ctx context.Context, input AddScaleUpDeployment
158158
if _, ok := n.Labels[nodeRoleOldControlPlane]; ok {
159159
continue
160160
}
161-
memory = n.Status.Capacity.Memory() // Assume that all nodes have the same memory.
161+
memory = n.Status.Allocatable.Memory() // Assume that all nodes have the same memory.
162162
workers++
163163
}
164164
Expect(memory).ToNot(BeNil(), "failed to get memory for the worker node")

0 commit comments

Comments
 (0)