fix(backup): aguardar pg_isready + pipefail (corrige race do netpol em pod novo)

This commit is contained in:
ATM Platform
2026-06-16 20:07:56 +00:00
parent f1bb238f19
commit 73184e1d73
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -38,7 +38,9 @@ spec:
command: ["/bin/sh", "-c"]
args:
- |
set -e
set -eo pipefail
echo "aguardando postgres ficar acessivel..."
for i in $(seq 1 30); do pg_isready -h postgres -U atm -t 3 >/dev/null 2>&1 && break; sleep 2; done
TS=$(date +%Y%m%d-%H%M%S)
for DB in athleticmap keycloak; do
echo "dump $DB ..."
+3 -1
View File
@@ -38,7 +38,9 @@ spec:
command: ["/bin/sh", "-c"]
args:
- |
set -e
set -eo pipefail
echo "aguardando postgres ficar acessivel..."
for i in $(seq 1 30); do pg_isready -h postgres -U atm -t 3 >/dev/null 2>&1 && break; sleep 2; done
TS=$(date +%Y%m%d-%H%M%S)
for DB in athleticmap keycloak; do
echo "dump $DB ..."