From d8dc9e7a028e3bcb898da4a6601e1b8dcacd1f1b Mon Sep 17 00:00:00 2001 From: Jordan Keister Date: Mon, 21 Oct 2024 15:38:15 -0500 Subject: [PATCH] adding additional waits to prevent e2e cert-manager failures (#441) Signed-off-by: Jordan Keister --- scripts/install.tpl.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install.tpl.sh b/scripts/install.tpl.sh index d2dd6a80..b7189243 100644 --- a/scripts/install.tpl.sh +++ b/scripts/install.tpl.sh @@ -33,8 +33,11 @@ function kubectl_wait() { } kubectl apply -f "https://github.com/cert-manager/cert-manager/releases/download/${cert_mgr_version}/cert-manager.yaml" +kubectl_wait "cert-manager" "deployment/cert-manager-cainjector" "60s" kubectl_wait "cert-manager" "deployment/cert-manager-webhook" "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 "${catalogd_manifest}" kubectl_wait "olmv1-system" "deployment/catalogd-controller-manager" "60s"