redis: Avoid templates in values.yaml

This commit is contained in:
Alexander Olofsson 2021-03-15 08:16:42 +01:00
parent 374c18191a
commit ee9612bc5a
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ postgres://{{ .Values.database.user}}:{{ .Values.database.password }}@{{ .Values
{{- end -}} {{- end -}}
{{- define "funkwhale.redisUrl" -}} {{- define "funkwhale.redisUrl" -}}
redis://:{{ .Values.redis.password }}@{{ .Values.redis.host }}:{{ .Values.redis.redisPort }}/0 redis://:{{ .Values.redis.password }}@{{ .Values.redis.host | default (printf "%s-%s" (include "funkwhale.fullname" .) "redis-master") }}:{{ .Values.redis.redisPort }}/0
{{- end -}} {{- end -}}
{{/* {{/*

View file

@ -57,7 +57,7 @@ redis:
enabled: false enabled: false
password: funkwhale password: funkwhale
redisPort: 6379 redisPort: 6379
host: {{ template "funkwhale.fullname" . }}-redis-master # host: {{ template "funkwhale.fullname" . }}-redis-master
djangoSecret: '' djangoSecret: ''