diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-02-17 07:47:56 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-02-17 07:47:56 +0000 |
commit | 4eddfbdf9caabe3ce30937d78b1bfe8aad72f8f9 (patch) | |
tree | 86398ea1f44e5d85f7da7ba7f046cdbddd0ce271 /kubernetes/vid/templates/deployment.yaml | |
parent | b845a69e4a72b5401b13b51b7d9a5f44b31f0293 (diff) | |
parent | 4a4703b68172a3d24b47d1510b0c7707805cc6a4 (diff) |
Merge "[VID] Don't hardcode mariadb-galera password"
Diffstat (limited to 'kubernetes/vid/templates/deployment.yaml')
-rw-r--r-- | kubernetes/vid/templates/deployment.yaml | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/kubernetes/vid/templates/deployment.yaml b/kubernetes/vid/templates/deployment.yaml index 0a5c0c5ba4..d449da1140 100644 --- a/kubernetes/vid/templates/deployment.yaml +++ b/kubernetes/vid/templates/deployment.yaml @@ -1,4 +1,5 @@ # Copyright © 2017 Amdocs, Bell Canada +# Copyright © 2020 Samsung Electronics # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -105,14 +106,9 @@ spec: - name: VID_MYSQL_DBNAME value: {{ index .Values "mariadb-galera" "config" "mysqlDatabase" }} - name: VID_MYSQL_USER - value: {{ index .Values "mariadb-galera" "config" "userName" }} + {{- include "common.secret.envFromSecret" (dict "global" . "uid" "vid-db-user-secret" "key" "login") | indent 14 }} - name: VID_MYSQL_PASS - valueFrom: - secretKeyRef: - name: {{ template "common.fullname" . }}-db - key: db-user-password - #valueFrom: - # secretKeyRef: {name: {{ include "common.fullname" . }}, key: vid-password} + {{- include "common.secret.envFromSecret" (dict "global" . "uid" "vid-db-user-secret" "key" "password") | indent 14 }} - name: VID_MYSQL_MAXCONNECTIONS value: "{{ .Values.config.vidmysqlmaxconnections }}" volumeMounts: |