diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-04-14 08:37:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-14 08:37:12 +0000 |
commit | f7e055a3e51f306f1dc78c46f36a4b23137cabcf (patch) | |
tree | 2ba73e4185870d48ffbe9f6b42fec2f79ff38587 /kubernetes/policy/templates/job.yaml | |
parent | 89980a4583908910c18c05631aa22ece98e3f4c3 (diff) | |
parent | 98a79cc52d63ae1218aff2b0043fedf9536f235a (diff) |
Merge "[POLICY] Use common secret template in whole policy module"
Diffstat (limited to 'kubernetes/policy/templates/job.yaml')
-rw-r--r-- | kubernetes/policy/templates/job.yaml | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/kubernetes/policy/templates/job.yaml b/kubernetes/policy/templates/job.yaml index 81904143fa..f6a1ace3dc 100644 --- a/kubernetes/policy/templates/job.yaml +++ b/kubernetes/policy/templates/job.yaml @@ -57,14 +57,11 @@ spec: - /dbcmd-config/db.sh env: - name: MYSQL_ROOT_PASSWORD - valueFrom: - secretKeyRef: - name: {{ template "common.fullname" . }}-secret - key: db-root-password + {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-root-password" "key" "password") | indent 10 }} - name: MYSQL_HOST value: "{{ index .Values "mariadb-galera" "service" "name" }}" - name: MYSQL_USER - value: "{{ index .Values "mariadb-galera" "config" "userName" }}" + {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-secret" "key" "login") | indent 10 }} - name: MYSQL_PORT value: "{{ index .Values "mariadb-galera" "service" "internalPort" }}" restartPolicy: Never |