fix backup-verify path and suspend redpanda-topics-init
backup-verify: restic restores /dump/all-databases.sql relative to restore target, so the check path was wrong (/all-databases.sql → /dump/all-databases.sql). Also fix the --include filter to match. redpanda-topics-init: redpanda is intentionally scaled to 0; the init job will block forever waiting for a broker. Mark it suspended so Argo CD won't keep creating a stuck job. Re-enable when redpanda is turned on.
This commit is contained in:
@@ -133,9 +133,9 @@ spec:
|
|||||||
mkdir -p /tmp/restore-verify
|
mkdir -p /tmp/restore-verify
|
||||||
restic restore latest \
|
restic restore latest \
|
||||||
--target /tmp/restore-verify \
|
--target /tmp/restore-verify \
|
||||||
--include /all-databases.sql
|
--include /dump/all-databases.sql
|
||||||
|
|
||||||
SQL_FILE="/tmp/restore-verify/all-databases.sql"
|
SQL_FILE="/tmp/restore-verify/dump/all-databases.sql"
|
||||||
if [ ! -f "$SQL_FILE" ]; then
|
if [ ! -f "$SQL_FILE" ]; then
|
||||||
echo "ERROR: SQL dump not found in restored snapshot"
|
echo "ERROR: SQL dump not found in restored snapshot"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ metadata:
|
|||||||
name: redpanda-topics-init
|
name: redpanda-topics-init
|
||||||
namespace: redpanda
|
namespace: redpanda
|
||||||
spec:
|
spec:
|
||||||
|
suspend: true # redpanda is scaled to 0; unsuspend this when redpanda is re-enabled
|
||||||
ttlSecondsAfterFinished: 300
|
ttlSecondsAfterFinished: 300
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
Reference in New Issue
Block a user