Skip to content

Commit b60477e

Browse files
authored
Make sure cert-manager is ready (#1401)
There have been a number of test and CI failures due to cert-manager not being ready. This adds additional checks to the deployments and specifically to the mutating webhook configuration. Signed-off-by: Todd Short <[email protected]>
1 parent 31bafb4 commit b60477e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/install.tpl.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ function kubectl_wait_rollout() {
4242
}
4343

4444
kubectl apply -f "https://github.com/cert-manager/cert-manager/releases/download/${cert_mgr_version}/cert-manager.yaml"
45+
# Wait for cert-manager to be fully ready
4546
kubectl_wait "cert-manager" "deployment/cert-manager-webhook" "60s"
47+
kubectl_wait "cert-manager" "deployment/cert-manager-cainjector" "60s"
48+
kubectl_wait "cert-manager" "deployment/cert-manager" "60s"
49+
kubectl wait mutatingwebhookconfigurations/cert-manager-webhook --for=jsonpath='{.webhooks[0].clientConfig.caBundle}' --timeout=60s
50+
kubectl wait validatingwebhookconfigurations/cert-manager-webhook --for=jsonpath='{.webhooks[0].clientConfig.caBundle}' --timeout=60s
4651

4752
kubectl apply -f "https://github.com/operator-framework/catalogd/releases/download/${catalogd_version}/catalogd.yaml"
4853
# Wait for the rollout, and then wait for the deployment to be Available

0 commit comments

Comments
 (0)