fix: add sleep before wait to ensure pod exists

This commit is contained in:
ange 2024-06-05 12:43:45 +02:00
parent 546681e5a8
commit ae810fcd69
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -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)" \