[COMMON] Update _mariadb.tpl to use the proper db 74/121074/3
authorMahmoud Abdelhamid <mahmoud.abdelhamid@orange.com>
Tue, 4 May 2021 14:54:08 +0000 (16:54 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 7 May 2021 05:11:18 +0000 (05:11 +0000)
Update common.mariadbService definition under _mariadb.tpl to use the
proper name of DB in case of local installation

Issue-ID: OOM-2736
Signed-off-by: Mahmoud Abdelhamid <mahmoud.abdelhamid@orange.com>
Change-Id: I454915d493f692076eadbf6ccd69c2d93f36ffc4

kubernetes/common/common/templates/_mariadb.tpl

index 1be3e3b..5021c50 100644 (file)
@@ -63,7 +63,7 @@
 */}}
 {{- define "common.mariadbService" -}}
   {{- if .Values.global.mariadbGalera.localCluster -}}
-    {{- index .Values "mariadb-galera" "service" "name" -}}
+    {{- index .Values "mariadb-galera" "nameOverride" -}}
   {{- else -}}
     {{- .Values.global.mariadbGalera.service -}}
   {{- end -}}