Skip to content

Commit 75f26e6

Browse files
authored
test: Apply KWOK requirement to only work with KWOK nodeclass (#2189)
1 parent 9daeda1 commit 75f26e6

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

test/suites/integration/suite_test.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,15 @@ var _ = BeforeEach(func() {
6262
env.BeforeEach()
6363
nodeClass = env.DefaultNodeClass.DeepCopy()
6464
nodePool = env.DefaultNodePool(nodeClass)
65-
test.ReplaceRequirements(nodePool, v1.NodeSelectorRequirementWithMinValues{
66-
NodeSelectorRequirement: corev1.NodeSelectorRequirement{
67-
Key: v1alpha1.InstanceSizeLabelKey,
68-
Operator: corev1.NodeSelectorOpLt,
69-
Values: []string{"32"},
70-
},
71-
})
65+
if env.IsDefaultNodeClassKWOK() {
66+
test.ReplaceRequirements(nodePool, v1.NodeSelectorRequirementWithMinValues{
67+
NodeSelectorRequirement: corev1.NodeSelectorRequirement{
68+
Key: v1alpha1.InstanceSizeLabelKey,
69+
Operator: corev1.NodeSelectorOpLt,
70+
Values: []string{"32"},
71+
},
72+
})
73+
}
7274
// no limits!!! to the moon!!!
7375
nodePool.Spec.Limits = v1.Limits{}
7476
nodePool.Spec.Disruption.Budgets = []v1.Budget{{Nodes: "100%"}}

0 commit comments

Comments
 (0)