|
|
@ -65,13 +65,17 @@ data:
|
|
|
|
{{- /* database default settings */ -}}
|
|
|
|
{{- /* database default settings */ -}}
|
|
|
|
{{- if .Values.gitea.database.builtIn.postgresql.enabled -}}
|
|
|
|
{{- if .Values.gitea.database.builtIn.postgresql.enabled -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.database "DB_TYPE" "postgres" -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.database "DB_TYPE" "postgres" -}}
|
|
|
|
|
|
|
|
{{- if not (.Values.gitea.config.database.HOST) -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.database "HOST" (include "postgresql.dns" .) -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.database "HOST" (include "postgresql.dns" .) -}}
|
|
|
|
|
|
|
|
{{- end -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.database "NAME" .Values.postgresql.global.postgresql.postgresqlDatabase -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.database "NAME" .Values.postgresql.global.postgresql.postgresqlDatabase -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.database "USER" .Values.postgresql.global.postgresql.postgresqlUsername -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.database "USER" .Values.postgresql.global.postgresql.postgresqlUsername -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.database "PASSWD" .Values.postgresql.global.postgresql.postgresqlPassword -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.database "PASSWD" .Values.postgresql.global.postgresql.postgresqlPassword -}}
|
|
|
|
{{ else if .Values.gitea.database.builtIn.mysql.enabled -}}
|
|
|
|
{{ else if .Values.gitea.database.builtIn.mysql.enabled -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.database "DB_TYPE" "mysql" -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.database "DB_TYPE" "mysql" -}}
|
|
|
|
|
|
|
|
{{- if not (.Values.gitea.config.database.HOST) -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.database "HOST" (include "mysql.dns" .) -}}
|
|
|
|
{{- $_ := 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 "NAME" .Values.mysql.db.name -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.database "USER" .Values.mysql.db.user -}}
|
|
|
|
{{- $_ := 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 "PASSWD" .Values.mysql.db.password -}}
|
|
|
@ -81,8 +85,10 @@ data:
|
|
|
|
{{- if .Values.gitea.cache.builtIn.enabled -}}
|
|
|
|
{{- if .Values.gitea.cache.builtIn.enabled -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.cache "ENABLED" "true" -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.cache "ENABLED" "true" -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.cache "ADAPTER" "memcache" -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.cache "ADAPTER" "memcache" -}}
|
|
|
|
|
|
|
|
{{- if not (.Values.gitea.config.cache.HOST) -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.cache "HOST" (include "memcached.dns" .) -}}
|
|
|
|
{{- $_ := set .Values.gitea.config.cache "HOST" (include "memcached.dns" .) -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
|
|
|
|
{{- /* autogenerate app.ini */ -}}
|
|
|
|
{{- /* autogenerate app.ini */ -}}
|
|
|
|
{{- range $key, $value := .Values.gitea.config }}
|
|
|
|
{{- range $key, $value := .Values.gitea.config }}
|
|
|
|