From ae810fcd69f9371e0efbf48755eeff2e09aa2496 Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 5 Jun 2024 12:43:45 +0200 Subject: [PATCH] fix: add sleep before wait to ensure pod exists --- manifests/bin/deploy.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/bin/deploy.sh b/manifests/bin/deploy.sh index 4083bdf..0f2a59d 100755 --- a/manifests/bin/deploy.sh +++ b/manifests/bin/deploy.sh @@ -61,6 +61,7 @@ kcreatesec gitea-admin \ --from-literal=password="$GITEA_PASSWORD" kubectl run --image "$IMAGEAPP" secrets sleep 60 & &> /dev/null +sleep 5 kubectl wait --timeout=5m --for=condition=ready pod secrets kcreatesec gitea \ --from-literal=secret_key="$(kgseckey gitea secret_key || kubectl exec secrets -- gitea generate secret SECRET_KEY)" \