diff options
author | egernug <gerard.nugent@est.tech> | 2022-06-08 10:33:44 +0100 |
---|---|---|
committer | egernug <gerard.nugent@est.tech> | 2023-01-23 13:38:33 +0000 |
commit | f400432711e42f75a7949ab38ddc8e82f94228c1 (patch) | |
tree | d4d9b8bac95c9b9149001dc9631afc2c98932587 /kubernetes/so/components/so-mariadb/templates | |
parent | 2f43e96c6a84b737590cc4db8a5d53fbac8fd586 (diff) |
[MARIADB] Create CNFM Database Within MariaDB
Creation of DB for CNFM component
Issue-ID: SO-3951
Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: Id506b44b784a4ee87fbb30e5a1e9328e873cba47
Diffstat (limited to 'kubernetes/so/components/so-mariadb/templates')
-rw-r--r-- | kubernetes/so/components/so-mariadb/templates/job.yaml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kubernetes/so/components/so-mariadb/templates/job.yaml b/kubernetes/so/components/so-mariadb/templates/job.yaml index d9c6009c8a..60c40b67d1 100644 --- a/kubernetes/so/components/so-mariadb/templates/job.yaml +++ b/kubernetes/so/components/so-mariadb/templates/job.yaml @@ -1,5 +1,6 @@ {{/* # Copyright © 2017 Amdocs, Bell Canada +# Modifications Copyright (C) 2022/23 Nordix Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,7 +57,7 @@ spec: - | {{- if include "common.onServiceMesh" . }} echo "waiting 15s for istio side cars to be up"; sleep 15s;{{- end }} - mysqldump -vv --user=${DB_USER} --password=${DB_PASS} --host=${DB_HOST} --port=${DB_PORT} --databases --single-transaction --quick --lock-tables=false catalogdb requestdb nfvo > /var/data/mariadb/backup-`date +%s`.sql + mysqldump -vv --user=${DB_USER} --password=${DB_PASS} --host=${DB_HOST} --port=${DB_PORT} --databases --single-transaction --quick --lock-tables=false catalogdb requestdb nfvo cnfm > /var/data/mariadb/backup-`date +%s`.sql volumeMounts: - mountPath: /etc/localtime name: localtime @@ -149,6 +150,10 @@ spec: {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "nfvo-db-creds" "key" "login") | indent 10 }} - name: NFVO_DB_PASSWORD {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "nfvo-db-creds" "key" "password") | indent 10 }} + - name: CNFM_DB_USER + {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "cnfm-db-creds" "key" "login") | indent 10 }} + - name: CNFM_DB_PASSWORD + {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "cnfm-db-creds" "key" "password") | indent 10 }} volumeMounts: - mountPath: /etc/localtime name: localtime |