From dfcdd3fe9dcb1ac2418191a7ade6ecdd4c9de8ca Mon Sep 17 00:00:00 2001 From: Danail Branekov Date: Mon, 28 Oct 2024 16:09:15 +0000 Subject: [PATCH] Installer retries connecting to local registry Without this users will always see failure when installing korifi and may not recognise that the job recovers automatically Co-authored-by: Georgi Sabev --- scripts/installer/install-korifi-kind.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/installer/install-korifi-kind.yaml b/scripts/installer/install-korifi-kind.yaml index 3b25de802..070d2cf98 100644 --- a/scripts/installer/install-korifi-kind.yaml +++ b/scripts/installer/install-korifi-kind.yaml @@ -88,6 +88,11 @@ spec: --set persistence.deleteEnabled=true \ --set secrets.htpasswd='user:$2y$05$Ue5dboOfmqk6Say31Sin9uVbHWTl8J1Sgq9QyAEmFQRnq1TPfP1n2' + while ! curl -o /dev/null http://localregistry-docker-registry.default.svc.cluster.local:30050/v2/_catalog 2>/dev/null; do + echo Waiting for the local docker registry to respond... + sleep 1 + done + registry_status_code="" while [[ "$registry_status_code" != "200" ]]; do echo Waiting for the local docker registry to start...