Skip to content

Commit

Permalink
Wait for pvc-autoresizer being ready
Browse files Browse the repository at this point in the history
We observed flakiness that the mutating webhook provided by
pvc-autoresizer does not work. The previous code is waiting for its
availability, but it is insufficient because pvc-autoresizer may not be
ready yet. This changes the wait condition to fix it.

Signed-off-by: Toshikuni Fukaya <[email protected]>
  • Loading branch information
toshipp committed Aug 20, 2024
1 parent ccaa924 commit 059c90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ var _ = BeforeSuite(func() {
err = yaml.Unmarshal(stdout, &deploy)
g.Expect(err).ShouldNot(HaveOccurred())

g.Expect(deploy.Status.AvailableReplicas).Should(Equal(int32(1)), "pvc-autoresizer-controller is not available yet")
g.Expect(deploy.Status.ReadyReplicas).Should(Equal(int32(1)), "pvc-autoresizer-controller is not ready yet")
}).Should(Succeed())

By("[BeforeSuite] Creating namespace for test")
Expand Down

0 comments on commit 059c90b

Please sign in to comment.