Skip to content

Commit d8c73ae

Browse files
committed
fix(sentry/sentry/helper): Redis URL not set when using externalRedis and externalRedis.existingSecret
1 parent 480a2a3 commit d8c73ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

charts/sentry/templates/sentry/_helper-sentry.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ sentry.conf.py: |-
210210
BROKER_URL = os.environ.get("BROKER_URL", "{{ $redisProto }}://:{{ $redisPass }}@{{ $redisHost }}:{{ $redisPort }}/{{ $redisDb }}")
211211
{{- else if and (not .Values.externalRedis.existingSecret) (not .Values.redis.auth.existingSecret)}}
212212
BROKER_URL = os.environ.get("BROKER_URL", "{{ $redisProto }}://{{ $redisHost }}:{{ $redisPort }}/{{ $redisDb }}")
213+
{{- else }}
214+
BROKER_URL = os.environ.get("BROKER_URL", f"{{ $redisProto }}://:{os.environ.get("REDIS_PASSWORD")}@{{ $redisHost }}:{{ $redisPort }}/{{ $redisDb }}")
213215
{{- end }}
214216

215217
#########

0 commit comments

Comments
 (0)