@@ -72,6 +72,13 @@ var _ = Describe("Extended Resources", func() {
7272 Operator : corev1 .NodeSelectorOpExists ,
7373 },
7474 })
75+ test .ReplaceRequirements (nodePool , karpv1.NodeSelectorRequirementWithMinValues {
76+ NodeSelectorRequirement : corev1.NodeSelectorRequirement {
77+ Key : v1 .LabelInstanceFamily ,
78+ Operator : corev1 .NodeSelectorOpNotIn ,
79+ Values : []string {"g6f" },
80+ },
81+ })
7582 env .ExpectCreated (nodeClass , nodePool , dep )
7683 env .EventuallyExpectHealthyPodCount (selector , numPods )
7784 env .ExpectCreatedNodeCount ("==" , 1 )
@@ -103,6 +110,13 @@ var _ = Describe("Extended Resources", func() {
103110 Key : v1 .LabelInstanceCategory ,
104111 Operator : corev1 .NodeSelectorOpExists ,
105112 }})
113+ test .ReplaceRequirements (nodePool , karpv1.NodeSelectorRequirementWithMinValues {
114+ NodeSelectorRequirement : corev1.NodeSelectorRequirement {
115+ Key : v1 .LabelInstanceFamily ,
116+ Operator : corev1 .NodeSelectorOpNotIn ,
117+ Values : []string {"g6f" },
118+ },
119+ })
106120 env .ExpectCreated (nodeClass , nodePool , dep )
107121 env .EventuallyExpectHealthyPodCount (selector , numPods )
108122 env .ExpectCreatedNodeCount ("==" , 1 )
0 commit comments