-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: allow Redis only and fix Redis password use in BROKER_URL #24
Conversation
Adds an enabled setting for RabbitMQ and Redis so the user can choose what to use.
Updates Sentry configmap to set redis as Broker URL if no RabbitMQ is deployed.
Updates Redis worker deployment to include the password when set
When RabbitMQ is disabled, use Redis connection string as BROKER_URL for the Sentry cron.
Amazing! Thanks. I'll put my comments right away |
BROKER_URL = os.environ.get("BROKER_URL", "amqp://{{ .Values.rabbitmq.username }}:{{ .Values.rabbitmq.password }}@{{ .Values.rabbitmq.host }}:5672//") | ||
{{- else if .Values.redis.enabled }} | ||
{{- if .Values.redis.password }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is repeated, could you use a template helper instead?
Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this, since Redis is always enabled. Since I'm fairly new to helm charts, I'm not sure how to write helpers yet. But I could take a look at it.
Simplifies some if/else conditions, since Redis is always enabled. Also remove redis.enabled setting from values.
Thanks ! That's perfect. Could you just activate rabbitmq per default, please ? |
Of course. |
No, not yet ! Go for it ;) I'll merge your PR in the early evening. Thanks for your work ! |
This allows to skip the deployment of RabbitMQ and therefore skip the deployment of the Sentry worker that connects to it.
This also fixes the Sentry Redis Worker, so that the correct BROKER_URL is used, when Redis is configured to connect with password.
This also updates the Sentry configmap to set the Broker URL to a Redis connection string, if RabbitMQ is disabled.