Skip to content

Commit

Permalink
Update Cert manager Version and increase wait time (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjglira authored Oct 17, 2023
1 parent 6062339 commit 6e5c5d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/certmanageroperator/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var (

certManagerOperatorNs = "cert-manager-operator"
certManagerNs = "cert-manager"
certmanagerVersion = "cert-manager-operator.v1.11.1"
certmanagerVersion = "cert-manager-operator.v1.12.0"
)

func InstallIfNotExist(t test.TestHelper) {
Expand Down Expand Up @@ -66,13 +66,13 @@ func installOperator(t test.TestHelper) {
func waitOperatorSucceded(t test.TestHelper, certManagerOperatorNs string) {
t.Log("Waiting for cert-manager-operator to succeed")
// When the operator is installed, the CSV take some time to be created, need to wait until is created to validate the phase
retry.UntilSuccessWithOptions(t, retry.Options().DelayBetweenAttempts(5*time.Second).MaxAttempts(60), func(t test.TestHelper) {
retry.UntilSuccessWithOptions(t, retry.Options().DelayBetweenAttempts(5*time.Second).MaxAttempts(70), func(t test.TestHelper) {
if !certManagerOperatorExists(t) {
t.Error("cert-manager-operator is not yet installed")
}
})

oc.WaitForPhase(t, certManagerOperatorNs, "csv", certmanagerVersion, "Succeeded")
oc.WaitPodReadyWithOptions(t, retry.Options().MaxAttempts(60).DelayBetweenAttempts(5*time.Second), pod.MatchingSelector("name=cert-manager-operator", certManagerOperatorNs))
oc.WaitPodReadyWithOptions(t, retry.Options().MaxAttempts(60).DelayBetweenAttempts(5*time.Second), pod.MatchingSelector("app=cert-manager", certManagerNs))
oc.WaitPodReadyWithOptions(t, retry.Options().MaxAttempts(70).DelayBetweenAttempts(5*time.Second), pod.MatchingSelector("name=cert-manager-operator", certManagerOperatorNs))
oc.WaitPodReadyWithOptions(t, retry.Options().MaxAttempts(70).DelayBetweenAttempts(5*time.Second), pod.MatchingSelector("app=cert-manager", certManagerNs))
}

0 comments on commit 6e5c5d4

Please sign in to comment.