From 09fb0d4fa8085236c02ead355725a694914b8367 Mon Sep 17 00:00:00 2001 From: Ram Lavi Date: Sun, 15 Dec 2024 09:42:46 +0200 Subject: [PATCH] cluster/cert-manager-install: Wait for deployments to be ready Signed-off-by: Ram Lavi --- cluster/cert-manager-install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cluster/cert-manager-install.sh b/cluster/cert-manager-install.sh index 5de4930fc..a03bfed40 100755 --- a/cluster/cert-manager-install.sh +++ b/cluster/cert-manager-install.sh @@ -23,4 +23,7 @@ if [[ $DEPLOY_CERT_MANAGER == true ]]; then echo "Installing cert-manager..." manifest="https://github.com/cert-manager/cert-manager/releases/download/${CERT_MANAGER_VERSION}/cert-manager.yaml" ./cluster/kubectl.sh apply -f "$manifest" + ./cluster/kubectl.sh wait --namespace cert-manager --for=condition=Available deployment/cert-manager --timeout=5m + ./cluster/kubectl.sh wait --namespace cert-manager --for=condition=Available deployment/cert-manager-cainjector --timeout=5m + ./cluster/kubectl.sh wait --namespace cert-manager --for=condition=Available deployment/cert-manager-webhook --timeout=5m fi