diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 1bcdd72..e955410 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -70,8 +70,8 @@ Return the MariaDB Secret Name */}} {{- define "librebooking.databaseSecretName" -}} {{- if .Values.mariadb.enabled }} - {{- if .Values.mariadb.auth.existingSecret -}} - {{- printf "%s" .Values.mariadb.auth.existingSecret -}} + {{- if .Values.mariadb.userDatabase.existingSecret -}} + {{- printf "%s" .Values.mariadb.userDatabase.existingSecret -}} {{- else -}} {{- printf "%s" (include "librebooking.mariadb.fullname" .) -}} {{- end -}}