From fefcd0201ea955151e92542140daf5067d488a06 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Mon, 25 Mar 2024 11:53:56 +0100
Subject: [PATCH] OZG-4956-use ConnectionService for db connection

---
 src/main/helm/templates/deployment.yaml                   | 2 +-
 .../helm/deployment-mongodb-passwort-secretref-test.yaml  | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml
index 2e56bc55..e8f5ea01 100644
--- a/src/main/helm/templates/deployment.yaml
+++ b/src/main/helm/templates/deployment.yaml
@@ -64,7 +64,7 @@ spec:
           valueFrom:
             secretKeyRef:
               name: {{ include "app.databaseSecretName" . }}
-              key: connectionString.standard
+              key: connectionString.standardSrv
               optional: false
         {{- if not (.Values.sso).api_user }}
         - name: OZGCLOUD_KEYCLOAK_API_PASSWORD
diff --git a/src/test/helm/deployment-mongodb-passwort-secretref-test.yaml b/src/test/helm/deployment-mongodb-passwort-secretref-test.yaml
index e3d55eea..5398f844 100644
--- a/src/test/helm/deployment-mongodb-passwort-secretref-test.yaml
+++ b/src/test/helm/deployment-mongodb-passwort-secretref-test.yaml
@@ -35,7 +35,7 @@ set:
   sso.serverUrl: https://sso.company.local
   baseUrl: test.company.local
 tests:
-  - it: should reference mongodb connectionString for user-manager
+  - it: should reference mongodb connection service for user-manager
     set:
       database.secretName: pluto-database-admin-user-manager-database-user
     template: deployment.yaml
@@ -48,10 +48,10 @@ tests:
             name: QUARKUS_MONGODB_CONNECTION_STRING
             valueFrom:
               secretKeyRef:
-                key: connectionString.standard
+                key: connectionString.standardSrv
                 name: pluto-database-admin-user-manager-database-user
                 optional: false
-  - it: check default mongodb connectionString for user-manager
+  - it: check default mongodb connection service for user-manager
     template: deployment.yaml
     release:
       namespace: sh-helm-test
@@ -62,6 +62,6 @@ tests:
             name: QUARKUS_MONGODB_CONNECTION_STRING
             valueFrom:
               secretKeyRef:
-                key: connectionString.standard
+                key: connectionString.standardSrv
                 name: ozg-mongodb-admin-user-manager-user
                 optional: false
\ No newline at end of file
-- 
GitLab