diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-03-11 08:36:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-03-11 08:36:32 +0000 |
commit | 1450e4dc479ee0cfefae4c22feef10bd46f2f4e0 (patch) | |
tree | ce5a7f284fd7df1f57470747c4d64d00fe92553e /kubernetes/so/charts/so-mariadb/templates/job.yaml | |
parent | bee2d8ba5eb570ca970512e4e58a947f3cd8dfdd (diff) | |
parent | 2f8f4b6c976d2d35ef7bd48dc90776958c533a8e (diff) |
Merge "[SO] Use common secret template in so-mariadb"
Diffstat (limited to 'kubernetes/so/charts/so-mariadb/templates/job.yaml')
-rw-r--r-- | kubernetes/so/charts/so-mariadb/templates/job.yaml | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/kubernetes/so/charts/so-mariadb/templates/job.yaml b/kubernetes/so/charts/so-mariadb/templates/job.yaml index 68c6017b91..c3002093eb 100644 --- a/kubernetes/so/charts/so-mariadb/templates/job.yaml +++ b/kubernetes/so/charts/so-mariadb/templates/job.yaml @@ -43,14 +43,11 @@ spec: - name: DB_HOST value: {{ .Values.global.migration.dbHost }} - name: DB_USER - value: {{ .Values.global.migration.dbUser }} + {{- include "common.secret.envFromSecret" (dict "global" . "uid" "db-backup-creds" "key" "login") | indent 10 }} - name: DB_PORT value: "{{ .Values.global.migration.dbPort }}" - name: DB_PASS - valueFrom: - secretKeyRef: - name: {{ template "common.fullname" . }}-migration - key: db-root-password-backup + {{- include "common.secret.envFromSecret" (dict "global" . "uid" "db-backup-creds" "key" "password") | indent 10 }} command: - /bin/bash - -c @@ -138,10 +135,7 @@ spec: name: {{ include "common.release" . }}-so-db-secrets key: mariadb.readwrite.port - name: MYSQL_ROOT_PASSWORD - valueFrom: - secretKeyRef: - name: {{ template "common.fullname" . }} - key: db-root-password + {{- include "common.secret.envFromSecret" (dict "global" . "uid" "db-root-pass" "key" "password") | indent 10 }} volumeMounts: - mountPath: /etc/localtime name: localtime |