Skip to content

Commit 9742bc6

Browse files
sanjayprabSanjay Prabhakar
andauthored
[patch] include_mongo flag to allow to include/exclude mongo backup and restore (#233)
Co-authored-by: Sanjay Prabhakar <[email protected]>
1 parent 5adb73a commit 9742bc6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ spec:
3838
value: "{{ include_sls }}"
3939
{% endif %}
4040

41+
{% if include_mongo is defined and include_mongo != "" %}
42+
- name: include_mongo
43+
value: "{{ include_mongo }}"
44+
{% endif %}
45+
4146
# MongoDB Configuration
4247
{% if mongodb_namespace is defined and mongodb_namespace != "" %}
4348
- name: mongodb_namespace

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ spec:
3636
value: "{{ restore_version }}"
3737

3838
# Component Flags
39+
{% if include_mongo is defined and include_mongo != "" %}
40+
- name: include_mongo
41+
value: "{{ include_mongo }}"
42+
{% endif %}
3943
{% if include_sls is defined and include_sls != "" %}
4044
- name: include_sls
4145
value: "{{ include_sls }}"

0 commit comments

Comments
 (0)