From 03a8eaaf6baa76364eb7e53afc6e4c0c259c4616 Mon Sep 17 00:00:00 2001 From: Todd Short Date: Mon, 21 Oct 2024 15:35:27 -0400 Subject: [PATCH] Make sure cert-manager is ready 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 --- scripts/install.tpl.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/install.tpl.sh b/scripts/install.tpl.sh index e8c857266..63acdc83c 100644 --- a/scripts/install.tpl.sh +++ b/scripts/install.tpl.sh @@ -42,7 +42,12 @@ function kubectl_wait_rollout() { } kubectl apply -f "https://github.com/cert-manager/cert-manager/releases/download/${cert_mgr_version}/cert-manager.yaml" +# Wait for cert-manager to be fully ready kubectl_wait "cert-manager" "deployment/cert-manager-webhook" "60s" +kubectl_wait "cert-manager" "deployment/cert-manager-cainjector" "60s" +kubectl_wait "cert-manager" "deployment/cert-manager" "60s" +kubectl wait mutatingwebhookconfigurations/cert-manager-webhook --for=jsonpath='{.webhooks[0].clientConfig.caBundle}' --timeout=60s +kubectl wait validatingwebhookconfigurations/cert-manager-webhook --for=jsonpath='{.webhooks[0].clientConfig.caBundle}' --timeout=60s kubectl apply -f "https://github.com/operator-framework/catalogd/releases/download/${catalogd_version}/catalogd.yaml" # Wait for the rollout, and then wait for the deployment to be Available