From 9773634cc18e45aee04afaff66c41cf6af44cefd Mon Sep 17 00:00:00 2001 From: subhamkrai Date: Wed, 26 May 2021 14:45:34 +0530 Subject: [PATCH] ceph: wait for cainjector to inject the CA certificates adding 20s sleep to let cainjector to inject the CA certificates into cert-manager webhook. Signed-off-by: subhamkrai --- tests/scripts/deploy_admission_controller.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/scripts/deploy_admission_controller.sh b/tests/scripts/deploy_admission_controller.sh index c5f7fe466..93fd8afa6 100755 --- a/tests/scripts/deploy_admission_controller.sh +++ b/tests/scripts/deploy_admission_controller.sh @@ -54,6 +54,7 @@ echo "Deploying cert-manager" kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/$CERT_VERSION/cert-manager.yaml timeout 150 sh -c 'until [ $(kubectl -n cert-manager get pods --field-selector=status.phase=Running|grep -c ^cert-) -eq 3 ]; do sleep 1; done' timeout 20 sh -c 'until [ $(kubectl -n cert-manager get pods -o custom-columns=READY:status.containerStatuses[*].ready | grep -c true) -eq 3 ]; do sleep 1; done' +sleep 20 echo "Successfully deployed cert-manager"