Skip to content

Commit e5e01ed

Browse files
committed
[patch] add conditional rendering for db2 parameters and fix workspace indentation
1 parent c820f05 commit e5e01ed

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,14 @@ spec:
5252
# -------------------------------------------------------------------------
5353
- name: db2_namespace
5454
value: "{{ db2_namespace }}"
55+
{%- if db2_v12_upgrade is defined and db2_v12_upgrade != "" %}
5556
- name: db2_v12_upgrade
5657
value: "{{ db2_v12_upgrade }}"
58+
{%- endif %}
59+
{%- if db2_license_file is defined and db2_license_file != "" %}
60+
- name: db2_license_file
61+
value: "{{ db2_license_file }}"
62+
{%- endif %}
5763
- name: db2_channel
5864
value: "{{ db2_channel }}"
5965
{%- endif %}
@@ -159,7 +165,7 @@ spec:
159165
- name: aiservice_instance_ids
160166
value: "{{ aiservice_instance_ids }}"
161167
{%- endif %}
162-
workspaces:
168+
workspaces:
163169
# The generated configuration files
164170
# -------------------------------------------------------------------------
165171

0 commit comments

Comments
 (0)