diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2020-05-08 13:26:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-05-08 13:26:19 +0000 |
commit | 111f15d0d813002f21d569010a3dd6b605a70acd (patch) | |
tree | 14c8ded80f06998aa2ff3cbfa6d4f35f82fef252 /kubernetes/vnfsdk/templates/job.yaml | |
parent | 60d0cc8d265cf1c4cf98cf60fcded73296bc49fc (diff) | |
parent | 79677d38adfb3de5a35c00cdb710f6325a8719a9 (diff) |
Merge "[VNFSDK] Use common secret template for postgres credentials"
Diffstat (limited to 'kubernetes/vnfsdk/templates/job.yaml')
-rw-r--r-- | kubernetes/vnfsdk/templates/job.yaml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kubernetes/vnfsdk/templates/job.yaml b/kubernetes/vnfsdk/templates/job.yaml index 2ec7b95772..1d0dd29f59 100644 --- a/kubernetes/vnfsdk/templates/job.yaml +++ b/kubernetes/vnfsdk/templates/job.yaml @@ -51,13 +51,15 @@ spec: image: "{{ .Values.postgresRepository }}/{{ .Values.postgresImage }}" imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} env: + - name: PGUSER + {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pg-user-creds" "key" "login") | indent 10 }} - name: PGPASSWORD - value: "{{ .Values.postgres.config.pgUserPassword }}" + {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pg-user-creds" "key" "password") | indent 10 }} command: - /bin/sh - -c - | - psql -U {{ .Values.postgres.config.pgUserName }} -h $(VNFSDK_DBPRI_SERVICE_HOST) -f /aaa/init/marketplace_tables_postgres.sql + psql -h $(VNFSDK_DBPRI_SERVICE_HOST) -f /aaa/init/marketplace_tables_postgres.sql volumeMounts: - name: init-data mountPath: /aaa/init/marketplace_tables_postgres.sql |