Skip to content

Commit

Permalink
fix drift E2E to use ReplaceRequirements (#40)
Browse files Browse the repository at this point in the history
Co-authored-by: Charlie McBride <[email protected]>
  • Loading branch information
charliedmcb and Charlie McBride authored Nov 18, 2023
1 parent 334b902 commit 389dc12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/suites/drift/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ var _ = Describe("Drift", func() {
BeforeEach(func() {
env.ExpectSettingsOverridden(v1.EnvVar{Name: "FEATURE_GATES", Value: "Drift=true"})

nodePool.Spec.Template.Spec.Requirements = []v1.NodeSelectorRequirement{{
test.ReplaceRequirements(nodePool, v1.NodeSelectorRequirement{
Key: v1.LabelInstanceTypeStable,
Operator: v1.NodeSelectorOpIn,
Values: []string{"Standard_DS2_v2"},
}}
})

// Add a do-not-disrupt pod so that we can check node metadata before we disrupt
pod = test.Pod(test.PodOptions{
Expand Down

0 comments on commit 389dc12

Please sign in to comment.