Skip to content

Commit d7a1ea5

Browse files
author
Alan Christie
committed
feat: Recovery can now continue on error
1 parent a9fada7 commit d7a1ea5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

roles/recovery/defaults/main.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ recovery_database_expected_count: 0
2929
# backup period. If you're backing up every 6 hours, set this value to 12.
3030
recovery_latest_backup_maximum_age_h: 0
3131

32+
# Do not stop on error?
33+
# If set the recovery Pod's DO_NOT_STOP_ON_ERROR variable is set.
34+
recovery_do_not_stop_on_error: no
35+
3236
# Wait for recovery to finish?
3337
# Set to 0 so as not to wait.
3438
recovery_wait_minutes: 60

roles/recovery/templates/job.yaml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ spec:
4242
secretKeyRef:
4343
name: {{ recovery_secret }}
4444
key: database_admin_user_password
45+
{% if recovery_do_not_stop_on_error %}
46+
- name: DO_NOT_STOP_ON_ERROR
47+
value: '1'
48+
{% endif %}
4549
{% if recovery_database_expected_count %}
4650
- name: DATABASE_EXPECTED_COUNT
4751
value: '{{ recovery_database_expected_count }}'

0 commit comments

Comments
 (0)