summaryrefslogtreecommitdiffstats
path: root/kubernetes/vnfsdk/templates/job.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-05-11 07:11:13 +0000
committerGerrit Code Review <gerrit@onap.org>2020-05-11 07:11:13 +0000
commit986ac0e14836ad904e8bb8f6ecf49cb0fe83df5e (patch)
treed91d97419d62552addda6651d0a7b7bd0ef8f5b1 /kubernetes/vnfsdk/templates/job.yaml
parentd451bedd8fac229c70feb767622675b09f4d968e (diff)
parentf427199dd4e058b0fb023aa62a97f1b9e1d20ab5 (diff)
Merge "[VNFSDK] Use common secret template for postgres credentials" into frankfurt
Diffstat (limited to 'kubernetes/vnfsdk/templates/job.yaml')
-rw-r--r--kubernetes/vnfsdk/templates/job.yaml6
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