From 9524a79501c5ad6b5caa851b1fff8ca318d02c9c Mon Sep 17 00:00:00 2001 From: Florian Piesche Date: Tue, 9 Mar 2021 02:37:36 +0000 Subject: [PATCH] Allow passing in external redis host --- charts/funkwhale/templates/_helpers.tpl | 2 +- charts/funkwhale/values.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/funkwhale/templates/_helpers.tpl b/charts/funkwhale/templates/_helpers.tpl index d9c8384..107de14 100644 --- a/charts/funkwhale/templates/_helpers.tpl +++ b/charts/funkwhale/templates/_helpers.tpl @@ -11,7 +11,7 @@ postgres://{{ .Values.database.user}}:{{ .Values.database.password }}@{{ .Values {{- end -}} {{- define "funkwhale.redisUrl" -}} -redis://:{{ .Values.redis.password }}@{{ template "funkwhale.fullname" . }}-redis-master:{{ .Values.redis.redisPort }}/0 +redis://:{{ .Values.redis.password }}@{{ .Values.redis.host }}:{{ .Values.redis.port }}/0 {{- end -}} {{/* diff --git a/charts/funkwhale/values.yaml b/charts/funkwhale/values.yaml index 28a5509..188325a 100644 --- a/charts/funkwhale/values.yaml +++ b/charts/funkwhale/values.yaml @@ -56,7 +56,8 @@ redis: persistence: enabled: false password: funkwhale - redisPort: 6379 + port: 6379 + host: {{ template "funkwhale.fullname" . }}-redis-master djangoSecret: ''