Skip to content

Commit

Permalink
test: Expect nodes to be spun up on Expiration Scale test (#5227)
Browse files Browse the repository at this point in the history
  • Loading branch information
engedaam committed Dec 5, 2023
1 parent 2dd7fdc commit 80609d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/suites/scale/deprovisioning_test.go
Expand Up @@ -600,6 +600,11 @@ var _ = Describe("Deprovisioning", Label(debug.NoWatch), Label(debug.NoEvents),
nodePool.Spec.Disruption.ExpireAfter.Duration = ptr.Duration(0)

noExpireNodePool := test.NodePool(*nodePool.DeepCopy())

// Disable Expiration
noExpireNodePool.Spec.Disruption.ConsolidateAfter = &corev1beta1.NillableDuration{}
noExpireNodePool.Spec.Disruption.ExpireAfter.Duration = nil

noExpireNodePool.ObjectMeta = metav1.ObjectMeta{Name: test.RandomName()}
noExpireNodePool.Spec.Template.Spec.Kubelet = &corev1beta1.KubeletConfiguration{
MaxPods: lo.ToPtr[int32](int32(maxPodDensity)),
Expand Down

0 comments on commit 80609d7

Please sign in to comment.