From a6a3af9f6fd952dbab12d5e5d2ba76a3476965a0 Mon Sep 17 00:00:00 2001
From: Veselin <veselin.gizdov@cleverpine.com>
Date: Thu, 26 Jan 2023 09:49:59 +0000
Subject: [PATCH] Add new file

---
 templates/configSecret.yaml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 templates/configSecret.yaml

diff --git a/templates/configSecret.yaml b/templates/configSecret.yaml
new file mode 100644
index 0000000..e18b96c
--- /dev/null
+++ b/templates/configSecret.yaml
@@ -0,0 +1,16 @@
+apiVersion: v1
+kind: Secret
+metadata:
+  name:  {{ template "app.name" . }}-config
+  namespace: {{ .Release.Namespace }}
+  labels:
+    {{- include "app.labels" . | nindent 4 }}
+stringData:
+  MEDIATOR_CONTROLLER_ADMIN_API_KEY: {{ .Values.mediator.controller.key }}
+  MEDIATOR_AGENT_ADMIN_API_KEY: {{ .Values.mediator.agent.key }}
+  MEDIATOR_AGENT_ADMIN_MODE: {{ .Values.mediator.agent.admin_mode.admin_api_key }}
+  POSTGRESQL_HOST: {{ .Values.mediator.postgre.host }}
+  POSTGRESQL_PORT: {{ .Values.mediator.postgre.port }}
+  ACAPY_WALLET_STORAGE_CONFIG: {{ .Values.mediator.wallet.storage.config }}
+  ACAPY_WALLET_STORAGE_CREDS: {{ .Values.mediator.wallet.storage.creds }}
+  ACAPY_WALLET_KEY: {{ .Values.mediator.wallet.key }}
-- 
GitLab