From 6e48215a2a55b864aa5b1752edda0e0baff7276c Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Tue, 3 Jan 2023 22:35:21 +0100 Subject: [PATCH] fix(mysql): wrong auth ref --- templates/_helpers.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 441491b..6b4e7bc 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -300,9 +300,9 @@ https {{- if not (.Values.gitea.config.database.HOST) -}} {{- $_ := set .Values.gitea.config.database "HOST" (include "mysql.dns" .) -}} {{- end -}} - {{- $_ := set .Values.gitea.config.database "NAME" .Values.mysql.db.name -}} - {{- $_ := set .Values.gitea.config.database "USER" .Values.mysql.db.user -}} - {{- $_ := set .Values.gitea.config.database "PASSWD" .Values.mysql.db.password -}} + {{- $_ := set .Values.gitea.config.database "NAME" .Values.mysql.auth.database -}} + {{- $_ := set .Values.gitea.config.database "USER" .Values.mysql.auth.username -}} + {{- $_ := set .Values.gitea.config.database "PASSWD" .Values.mysql.auth.password -}} {{- else if .Values.mariadb.enabled -}} {{- $_ := set .Values.gitea.config.database "DB_TYPE" "mysql" -}} {{- if not (.Values.gitea.config.database.HOST) -}}