summaryrefslogtreecommitdiffstats
path: root/kubernetes/dmaap/components/dmaap-dr-prov/values.yaml
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2020-03-02 13:35:05 +0000
committerGerrit Code Review <gerrit@onap.org>2020-03-02 13:35:05 +0000
commitb61a71b57b1822ca4a1611e7ff977bb8a0ef3c53 (patch)
tree6954a39f9aa27cb236352c482f74315aea2d4bf7 /kubernetes/dmaap/components/dmaap-dr-prov/values.yaml
parent7dfaf3300ec85a9f6e6b73a14c86c1c717e369f8 (diff)
parente55b4d5b6c817f28e34c08e30b8b01d3cd732a3e (diff)
Merge "[DMAAP] Don't hardcode mariadb-galera password"
Diffstat (limited to 'kubernetes/dmaap/components/dmaap-dr-prov/values.yaml')
-rw-r--r--kubernetes/dmaap/components/dmaap-dr-prov/values.yaml20
1 files changed, 16 insertions, 4 deletions
diff --git a/kubernetes/dmaap/components/dmaap-dr-prov/values.yaml b/kubernetes/dmaap/components/dmaap-dr-prov/values.yaml
index 4dcd7c3319..6165568971 100644
--- a/kubernetes/dmaap/components/dmaap-dr-prov/values.yaml
+++ b/kubernetes/dmaap/components/dmaap-dr-prov/values.yaml
@@ -20,6 +20,17 @@ global:
loggingDirectory: /opt/app/datartr/logs
#################################################################
+# Secrets metaconfig
+#################################################################
+secrets:
+ - uid: dmaap-dr-db-user-secret
+ name: '{{ include "common.release" . }}-dmaap-dr-db-user-secret'
+ type: basicAuth
+ externalSecret: '{{ tpl (default "" .Values.config.dmaapDrDb.userCredentialsExternalSecret) . }}'
+ login: '{{ .Values.config.dmaapDrDb.userName }}'
+ password: '{{ .Values.config.dmaapDrDb.userPassword }}'
+
+#################################################################
# Application configuration defaults.
#################################################################
# application image
@@ -88,6 +99,9 @@ config:
mariadbServiceName: dmaap-dr-db-svc
mariadbServicePort: 3306
mariadbContName: dmaap-dr-db
+ userName: datarouter
+# userPassword: password
+# userCredentialsExternalSecret: some secret
# mariadb-galera configuration
mariadb:
@@ -95,9 +109,7 @@ mariadb:
nameOverride: dmaap-dr-db
replicaCount: 2
config:
- mariadbRootPassword: datarouter
- userName: datarouter
- userPassword: datarouter
+ userCredentialsExternalSecret: '{{ include "common.release" . }}-dmaap-dr-db-user-secret'
mysqlDatabase: datarouter
service:
name: dmaap-dr-db-svc
@@ -136,4 +148,4 @@ resources:
requests:
cpu: 1000m
memory: 2Gi
- unlimited: {} \ No newline at end of file
+ unlimited: {}