From 9584cc317c42f1b05a03220ab04f4c7c45ca95a2 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Sat, 29 Jul 2023 20:13:11 +0200 Subject: [PATCH] feat(funkwhale): Add an ability to choose Redis db --- charts/funkwhale/templates/_helpers.tpl | 2 +- charts/funkwhale/values.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/funkwhale/templates/_helpers.tpl b/charts/funkwhale/templates/_helpers.tpl index ec46c4b..a7eb807 100644 --- a/charts/funkwhale/templates/_helpers.tpl +++ b/charts/funkwhale/templates/_helpers.tpl @@ -71,7 +71,7 @@ Create the correct image tag name {{- else if .Values.redis.enabled -}} redis://:{{ .Values.redis.auth.password }}@{{ template "funkwhale.redis.host" . }}:{{ .Values.redis.master.service.port | default 6379 }}/0 {{- else if .Values.redis.host -}} -redis://:{{ .Values.redis.auth.password }}@{{ .Values.redis.host }}:{{ .Values.redis.master.service.port | default 6379 }}/0 +redis://:{{ .Values.redis.auth.password }}@{{ .Values.redis.host }}:{{ .Values.redis.master.service.port | default 6379 }}/{{ .Values.redis.database }} {{- else -}} {{ fail "Either redis.enabled or redis.host are required!" }} {{- end -}} diff --git a/charts/funkwhale/values.yaml b/charts/funkwhale/values.yaml index a3c7588..9da4103 100644 --- a/charts/funkwhale/values.yaml +++ b/charts/funkwhale/values.yaml @@ -84,6 +84,8 @@ redis: ## External Redis hostname or IP # host: redis.example.com + ## Name of the redis database funkwhale should connect to + database: 0 auth: enabled: true