Skip to content

Commit

Permalink
Merge pull request #11008 from k8s-infra-cherrypick-robot/cherry-pick…
Browse files Browse the repository at this point in the history
…-11004-to-release-1.7

[release-1.7] 🌱 test/framework: scale up should use allocatable memory
  • Loading branch information
k8s-ci-robot authored Aug 5, 2024
2 parents 29f537d + 5c28d1b commit 6aa8507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/framework/autoscaler_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func AddScaleUpDeploymentAndWait(ctx context.Context, input AddScaleUpDeployment
if _, ok := n.Labels[nodeRoleOldControlPlane]; ok {
continue
}
memory = n.Status.Capacity.Memory() // Assume that all nodes have the same memory.
memory = n.Status.Allocatable.Memory() // Assume that all nodes have the same memory.
workers++
}
Expect(memory).ToNot(BeNil(), "failed to get memory for the worker node")
Expand Down

0 comments on commit 6aa8507

Please sign in to comment.