From 6be944ae875dfa0183fcd0e8aebbfca34ba7602c Mon Sep 17 00:00:00 2001 From: Divyesh Khokhar Date: Sat, 20 Jun 2026 13:04:53 +0530 Subject: [PATCH 1/2] [patch] Added support external database for AI Service --- .../templates/pipelinerun-install.yml.j2 | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/mas/devops/templates/pipelinerun-install.yml.j2 b/src/mas/devops/templates/pipelinerun-install.yml.j2 index 27898ab9..31f94125 100644 --- a/src/mas/devops/templates/pipelinerun-install.yml.j2 +++ b/src/mas/devops/templates/pipelinerun-install.yml.j2 @@ -1002,6 +1002,29 @@ spec: value: "{{ aiservice_certificate_issuer }}" {%- endif %} + # AI Service - Database Configuration + # ------------------------------------------------------------------------- +{%- if install_db2 is defined and install_db2 != "" %} + - name: install_db2 + value: "{{ install_db2 }}" +{%- endif %} +{%- if aiservice_db_jdbc_url is defined and aiservice_db_jdbc_url != "" %} + - name: aiservice_db_jdbc_url + value: "{{ aiservice_db_jdbc_url }}" +{%- endif %} +{%- if aiservice_db_username is defined and aiservice_db_username != "" %} + - name: aiservice_db_username + value: "{{ aiservice_db_username }}" +{%- endif %} +{%- if aiservice_db_password is defined and aiservice_db_password != "" %} + - name: aiservice_db_password + value: "{{ aiservice_db_password }}" +{%- endif %} +{%- if aiservice_db_ca_cert is defined and aiservice_db_ca_cert != "" %} + - name: aiservice_db_ca_cert + value: "{{ aiservice_db_ca_cert }}" +{%- endif %} + {%- endif %} workspaces: From 6fb338a0b3a9247b59a25301d583aebe728c1289 Mon Sep 17 00:00:00 2001 From: Divyesh Khokhar Date: Sat, 20 Jun 2026 23:28:26 +0530 Subject: [PATCH 2/2] [patch] fix condition --- src/mas/devops/templates/pipelinerun-install.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mas/devops/templates/pipelinerun-install.yml.j2 b/src/mas/devops/templates/pipelinerun-install.yml.j2 index 31f94125..6a1e9c88 100644 --- a/src/mas/devops/templates/pipelinerun-install.yml.j2 +++ b/src/mas/devops/templates/pipelinerun-install.yml.j2 @@ -1004,7 +1004,7 @@ spec: # AI Service - Database Configuration # ------------------------------------------------------------------------- -{%- if install_db2 is defined and install_db2 != "" %} +{%- if install_db2 is defined %} - name: install_db2 value: "{{ install_db2 }}" {%- endif %}