From a0c34fea9b98b308fd97ce602cca7b068763d913 Mon Sep 17 00:00:00 2001
From: Georgi Todorov <georgi.todorov@cleverpine.com>
Date: Wed, 15 Feb 2023 20:58:39 +0000
Subject: [PATCH] Update deployment.yaml

---
 templates/deployment.yaml | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/templates/deployment.yaml b/templates/deployment.yaml
index 31dc7f4..29d00e9 100644
--- a/templates/deployment.yaml
+++ b/templates/deployment.yaml
@@ -42,17 +42,11 @@ spec:
                 name: {{ template "app.name" . }}-config
                 key: MEDIATOR_CONTROLLER_ADMIN_API_KEY
           - name: MEDIATOR_AGENT_ADMIN_API_KEY
-            valueFrom:
-              secretKeyRef:
-                name: {{ template "app.name" . }}-config
-                key: MEDIATOR_AGENT_ADMIN_API_KEY
+            value: {{ .Values.mediator.admin.key | quote }}
           - name: ACAPY_WALLET_KEY
             value: {{ .Values.mediator.wallet.key | quote }}
           - name: MEDIATOR_AGENT_ADMIN_MODE
-            valueFrom:
-              secretKeyRef:
-                name: {{ template "app.name" . }}-config
-                key: MEDIATOR_AGENT_ADMIN_MODE
+            value: {{ .Values.mediator.admin.mode | quote }}
           - name: MEDIATOR_CONTROLLER_WEBHOOK
             value: {{ .Values.mediator.controller.webhook | quote }}
           - name: MEDIATOR_AGENT_LABEL
@@ -75,6 +69,10 @@ spec:
             value: {{ .Values.mediator.wallet.name | quote }}
           - name: MEDIATOR_ARG_FILE
             value: {{ .Values.mediator.arg_file | quote }}
+          - name: DB_USER
+            value: {{ .Values.postgres.user }}
+          - name: DB_PASSWORD
+            value: {{ .Values.postgres.password }}
           
 {{- if .Values.extraVars }}
 {{ toYaml .Values.extraVars | indent 8 }}
-- 
GitLab