Skip to content

Commit

Permalink
[svix] automatically set queue/cache type if Redis is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jshimko committed Oct 1, 2024
1 parent eab19f9 commit a220c91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/svix/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: svix
description: A Helm chart for running svix on Kubernetes
type: application
version: 0.6.0
version: 0.6.1

dependencies:
# Postgres Operator - PostgresCluster
Expand Down
6 changes: 6 additions & 0 deletions charts/svix/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,14 @@ Common postgres/redis env
{{- if .Values.redis.enabled }}
- name: SVIX_REDIS_DSN
value: "redis://{{ .Values.redis.fullnameOverride }}-master:6379"

- name: SVIX_QUEUE_TYPE
value: "redis"
- name: SVIX_QUEUE_DSN
value: "$(SVIX_REDIS_DSN)"

- name: SVIX_CACHE_TYPE
value: "redis"
- name: SVIX_CACHE_DSN
value: "$(SVIX_REDIS_DSN)"
{{- end }}
Expand Down

0 comments on commit a220c91

Please sign in to comment.