From 81898ffe9c0ccb515ca094dbd1df524b35235a71 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Sun, 29 Jun 2025 14:13:43 +0200 Subject: [PATCH] fix(setup): wait for specific cert-manager pods to be ready Update the kubectl wait command to target specific pods in the cert-manager namespace using labels. This ensures that the setup process only proceeds once the necessary components (cert-manager, cainjector, and webhook) are ready, improving reliability and specificity in deployment readiness checks. --- setup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup b/setup index a544a59..60e9fde 100755 --- a/setup +++ b/setup @@ -16,7 +16,9 @@ kustomized="$(mktemp --suffix .unboundkind.yaml --tmpdir=/tmp/)" kubectl kustomize --enable-helm ./kind > "${kustomized}" kubectl apply -f "${kustomized}" || true -kubectl wait --for=condition=Ready pods --all -n cert-manager --timeout=5m +kubectl wait --for=condition=Ready pods -n cert-manager -l app=cert-manager --timeout 5m +kubectl wait --for=condition=Ready pods -n cert-manager -l app=cainjector --timeout 5m +kubectl wait --for=condition=Ready pods -n cert-manager -l app=webhook --timeout 5m kubectl wait --for=condition=Ready pods --all -n external-secrets --timeout=5m kubectl apply -f "${kustomized}"