Skip to content

Conversation

@jiriks74
Copy link
Contributor

@jiriks74 jiriks74 commented Sep 5, 2025

Fixes: #1870

@jiriks74 jiriks74 changed the title fix(sentry/sentry/helper): Redis URL not set when using externalRedis and externalRedis.existingSecret fix(sentry/sentry/helper): Redis URL not set when using externalRedis.existingSecret or redis.auth.existingSecret Sep 5, 2025
@jiriks74
Copy link
Contributor Author

jiriks74 commented Oct 1, 2025

Hello, seems like this might've been missed. Can I do something to push this further?

@patsevanton
Copy link
Contributor

@jiriks74 could you share minimal values.yaml for reproduce?

@jiriks74
Copy link
Contributor Author

jiriks74 commented Oct 26, 2025

redis:
  enabled: false
externalRedis:
  host: "my-redis"
  port: 6379
  existingSecret: redis-secret
  existingSecretKey: REDIS_PASSWORD
  db: 0
  ssl: false

@jiriks74
Copy link
Contributor Author

jiriks74 commented Oct 26, 2025

The issue can be seen in the if statement..

  1. Case: RabbitMQ
  2. Case: Password defined in values
    {{- else if $redisPass }}
  3. Case: No password
    {{- else if and (not .Values.externalRedis.existingSecret) (not .Values.redis.auth.existingSecret)}}

There's a missing case for when either externalRedis.existingSecret or redis.auth.existingSecret is set. And because the 3rd case is an if and on those values, once you set at least one of those the broker URL completely disappears and the workers try to connect to localhost instead.

@jiriks74 jiriks74 force-pushed the develop branch 4 times, most recently from 71aefe9 to ec99b2a Compare October 26, 2025 08:16
…s.existingSecret` or `redis.auth.existingSecret`
@jiriks74
Copy link
Contributor Author

jiriks74 commented Nov 6, 2025

@patsevanton
Anything I can do to push this further? This should solve the problem and the solution takes advantage of variables set up by other templates so it's even not that big of a change. Is there something I'm missing?

@patsevanton
Copy link
Contributor

patsevanton commented Nov 6, 2025

Need someone to check your MR. I'll try to take the time for that.

@patsevanton
Copy link
Contributor

i tested issue #1870 and not reproducible

@jiriks74
Copy link
Contributor Author

I'll look into this again in the coming days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: BROKER_URL is not set in Sentry configmap if externalRedis.existingSecret or redis.auth.existingSecret is used

2 participants