Skip to content

Commit 50a27f1

Browse files
sanjayprabSanjay Prabhakar
andauthored
[patch] fix for clean_backup flag in backup and restore pipelinerun (#239)
Co-authored-by: Sanjay Prabhakar <sanjay.prabhakar@uk.ibm.com>
1 parent 9742bc6 commit 50a27f1

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/mas/devops/templates/pipelinerun-backup.yml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ spec:
3131
# Backup Configuration
3232
- name: backup_version
3333
value: "{{ backup_version }}"
34+
{% if clean_backup is defined and clean_backup != "" %}
35+
- name: clean_backup
36+
value: "{{ clean_backup }}"
37+
{% endif %}
3438

3539
# Component Flags
3640
{% if include_sls is defined and include_sls != "" %}

src/mas/devops/templates/pipelinerun-restore.yml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ spec:
3434
# Restore Configuration
3535
- name: restore_version
3636
value: "{{ restore_version }}"
37+
{% if clean_backup is defined and clean_backup != "" %}
38+
- name: clean_backup
39+
value: "{{ clean_backup }}"
40+
{% endif %}
3741

3842
# Component Flags
3943
{% if include_mongo is defined and include_mongo != "" %}

0 commit comments

Comments
 (0)