Skip to content

Commit

Permalink
Validate that only the start-up taint is the only taint before removi…
Browse files Browse the repository at this point in the history
…ng it
  • Loading branch information
engedaam committed Jul 19, 2024
1 parent 93b7d53 commit 26b732e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/suites/drift/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ var _ = Describe("Drift", func() {
// Remove the startup taints from the new nodes to initialize them
Eventually(func(g Gomega) {
g.Expect(env.Client.Get(env.Context, client.ObjectKeyFromObject(nodeTwo), nodeTwo)).To(Succeed())
g.Expect(len(nodeTwo.Spec.Taints)).To(BeNumerically("==", 1))
_, found := lo.Find(nodeTwo.Spec.Taints, func(t corev1.Taint) bool {
return t.MatchTaint(&corev1.Taint{Key: "example.com/another-taint-2", Effect: corev1.TaintEffectPreferNoSchedule})
})
Expand Down

0 comments on commit 26b732e

Please sign in to comment.