Skip to content

Commit a054dcc

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ sentry.conf.py: |-
208208
BROKER_URL = os.environ.get("BROKER_URL", "amqp://{{ .Values.rabbitmq.auth.username }}:{{ .Values.rabbitmq.auth.password }}@{{ template "sentry.rabbitmq.host" . }}:5672/{{ .Values.rabbitmq.vhost }}")
209209
{{- else if $redisPass }}
210210
BROKER_URL = os.environ.get("BROKER_URL", "{{ $redisProto }}://:{{ $redisPass }}@{{ $redisHost }}:{{ $redisPort }}/{{ $redisDb }}")
211-
{{- else if and (not .Values.externalRedis.existingSecret) (not .Values.redis.auth.existingSecret)}}
211+
{{- else if or (not .Values.externalRedis.existingSecret) (not .Values.redis.auth.existingSecret)}}
212+
BROKER_URL = os.environ.get("BROKER_URL", f"{{ $redisProto }}://:{os.environ.get("REDIS_PASSWORD")}@{{ $redisHost }}:{{ $redisPort }}/{{ $redisDb }}")
213+
{{- else }}
212214
BROKER_URL = os.environ.get("BROKER_URL", "{{ $redisProto }}://{{ $redisHost }}:{{ $redisPort }}/{{ $redisDb }}")
213215
{{- end }}
214216

0 commit comments

Comments
 (0)