diff options
author | 2020-08-24 13:55:58 +0100 | |
---|---|---|
committer | 2020-09-01 13:24:52 +0100 | |
commit | 4df5519c1087da5c79f47ed817e17b5eac78e113 (patch) | |
tree | 17b14cd90ec53755b1bf692d64b769a564d91d0a /kubernetes/so/charts/so-mariadb/templates | |
parent | 62d2c70954fd0902ad554356cd7675732b89ab0c (diff) |
[MariaDB] Create NFVO Database Within MariaDB
Adding an additional SH script in order to create the NFVO database, which will be used by the SO ETSI NFVO NS LCM.
It will be used to store required information on any NFVOs.
The creation of the NFVO Database should not have an effect on other databases, as their creations have not been modified.
Also renamed the Create so_user and so_admin SH scripts to start with 98, 99 in order to trigger after any new scripts are added in the future.
Issue-ID: SO-3159
Change-Id: Idbf09db294d5bbc9e7dca063bc08040ce2bc8568
Signed-off-by: rope252 <gareth.roper@est.tech>
Diffstat (limited to 'kubernetes/so/charts/so-mariadb/templates')
-rw-r--r-- | kubernetes/so/charts/so-mariadb/templates/job.yaml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kubernetes/so/charts/so-mariadb/templates/job.yaml b/kubernetes/so/charts/so-mariadb/templates/job.yaml index ec589ea33e..f1081ad549 100644 --- a/kubernetes/so/charts/so-mariadb/templates/job.yaml +++ b/kubernetes/so/charts/so-mariadb/templates/job.yaml @@ -51,7 +51,7 @@ spec: command: - /bin/bash - -c - - mysqldump -vv --user=${DB_USER} --password=${DB_PASS} --host=${DB_HOST} --port=${DB_PORT} --databases --single-transaction --quick --lock-tables=false catalogdb requestdb > /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 > /var/data/mariadb/backup-`date +%s`.sql volumeMounts: - mountPath: /etc/localtime name: localtime @@ -156,6 +156,10 @@ spec: {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "catalog-db-creds" "key" "login") | indent 10 }} - name: CATALOG_DB_PASSWORD {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "catalog-db-creds" "key" "password") | indent 10 }} + - name: NFVO_DB_USER + {{- 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 }} volumeMounts: - mountPath: /etc/localtime name: localtime |