Skip to content

Commit

Permalink
Fix force rolling update annotation test case.
Browse files Browse the repository at this point in the history
Signed-off-by: d-kuro <[email protected]>
  • Loading branch information
d-kuro committed Jul 24, 2024
1 parent 088bac5 commit 69a62a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/v1beta2/statefulset_webhhok_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ var _ = Describe("MySQLCluster Webhook", func() {
err := k8sClient.Create(ctx, r)
Expect(err).NotTo(HaveOccurred())

err = k8sClient.Update(ctx, r)
Expect(err).NotTo(HaveOccurred())
Expect(r.Spec.UpdateStrategy.RollingUpdate.Partition).To(Equal(r.Spec.Replicas))

r.Annotations = map[string]string{constants.AnnForceRollingUpdate: "true"}
err = k8sClient.Update(ctx, r)
Expect(err).NotTo(HaveOccurred())
Expand Down

0 comments on commit 69a62a0

Please sign in to comment.