Skip to content

Commit

Permalink
test: Fix time out in scale tests (#6451)
Browse files Browse the repository at this point in the history
  • Loading branch information
jigisha620 authored Jul 12, 2024
1 parent 9a54e8e commit a5d495e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/suites/scale/deprovisioning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ var _ = Describe("Deprovisioning", Label(debug.NoWatch), Label(debug.NoEvents),
},
},
}...)
nodePool.Spec.Disruption.Budgets = []corev1beta1.Budget{
{
Nodes: "70%",
},
}
deploymentOptions = test.DeploymentOptions{
PodOptions: test.PodOptions{
ResourceRequirements: v1.ResourceRequirements{
Expand Down Expand Up @@ -297,6 +302,11 @@ var _ = Describe("Deprovisioning", Label(debug.NoWatch), Label(debug.NoEvents),
env.MeasureDeprovisioningDurationFor(func() {
By("enabling deprovisioning across nodePools")
for _, p := range nodePoolMap {
p.Spec.Disruption.Budgets = []corev1beta1.Budget{
{
Nodes: "70%",
},
}
env.ExpectCreatedOrUpdated(p)
}
env.ExpectUpdated(driftNodeClass)
Expand Down
5 changes: 5 additions & 0 deletions test/suites/scale/provisioning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ var _ = Describe("Provisioning", Label(debug.NoWatch), Label(debug.NoEvents), fu
nodeClass = env.DefaultEC2NodeClass()
nodePool = env.DefaultNodePool(nodeClass)
nodePool.Spec.Limits = nil
nodePool.Spec.Disruption.Budgets = []corev1beta1.Budget{
{
Nodes: "70%",
},
}
test.ReplaceRequirements(nodePool, corev1beta1.NodeSelectorRequirementWithMinValues{
NodeSelectorRequirement: v1.NodeSelectorRequirement{
Key: v1beta1.LabelInstanceHypervisor,
Expand Down

0 comments on commit a5d495e

Please sign in to comment.