diff --git a/src/mas/devops/templates/pipelinerun-backup.yml.j2 b/src/mas/devops/templates/pipelinerun-backup.yml.j2 index 433e43f6..2d82b49f 100644 --- a/src/mas/devops/templates/pipelinerun-backup.yml.j2 +++ b/src/mas/devops/templates/pipelinerun-backup.yml.j2 @@ -31,6 +31,10 @@ spec: # Backup Configuration - name: backup_version value: "{{ backup_version }}" + {% if clean_backup is defined and clean_backup != "" %} + - name: clean_backup + value: "{{ clean_backup }}" + {% endif %} # Component Flags {% if include_sls is defined and include_sls != "" %} diff --git a/src/mas/devops/templates/pipelinerun-restore.yml.j2 b/src/mas/devops/templates/pipelinerun-restore.yml.j2 index 679f6b5c..9daeb43d 100644 --- a/src/mas/devops/templates/pipelinerun-restore.yml.j2 +++ b/src/mas/devops/templates/pipelinerun-restore.yml.j2 @@ -34,6 +34,10 @@ spec: # Restore Configuration - name: restore_version value: "{{ restore_version }}" + {% if clean_backup is defined and clean_backup != "" %} + - name: clean_backup + value: "{{ clean_backup }}" + {% endif %} # Component Flags {% if include_mongo is defined and include_mongo != "" %}