diff options
author | Borislav Glozman <Borislav.Glozman@amdocs.com> | 2020-02-02 13:08:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-02-02 13:08:38 +0000 |
commit | d0783be2aa4422d3946623791653f1e2091f0983 (patch) | |
tree | 0aae5c17a53571dfb12ae504cf359aa0cda34d7c /kubernetes/common/mariadb-init/templates/_mariadb.tpl | |
parent | 5d620cbbd75517d6d60600debe0f5f5281538580 (diff) | |
parent | d73224418141fb7a2bae8d083de8f6e88e493c3d (diff) |
Merge "[COMMON] Use common secret template in mariadb-init"
Diffstat (limited to 'kubernetes/common/mariadb-init/templates/_mariadb.tpl')
-rw-r--r-- | kubernetes/common/mariadb-init/templates/_mariadb.tpl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/kubernetes/common/mariadb-init/templates/_mariadb.tpl b/kubernetes/common/mariadb-init/templates/_mariadb.tpl index 231fd875e2..64c15ed862 100644 --- a/kubernetes/common/mariadb-init/templates/_mariadb.tpl +++ b/kubernetes/common/mariadb-init/templates/_mariadb.tpl @@ -18,9 +18,5 @@ Choose the name of the mariadb secret to use. */}} {{- define "mariadbInit.mariadbClusterSecret" -}} - {{- if (eq "default" .Values.global.mariadbGalera.userRootSecret) -}} - {{- printf "%s-%s-db-root-password" (include "common.release" .) .Values.global.mariadbGalera.nameOverride -}} - {{- else -}} - {{- .Values.global.mariadbGalera.userRootSecret -}} - {{- end -}} + {{- printf "%s-%s-db-root-password" (include "common.release" .) (default "mariadb-galera" .Values.global.mariadbGalera.nameOverride) -}} {{- end -}} |