File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff 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%" }}
You can’t perform that action at this time.
0 commit comments