Skip to content

Commit fe13c12

Browse files
authored
feat(cache): Add redis cache url (#172)
1 parent 6a27583 commit fe13c12

12 files changed

Lines changed: 19 additions & 12 deletions

charts/lago/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
2-
appVersion: "1.32.0"
2+
appVersion: "1.32.4"
33
description: the Lago open source billing app
44
name: lago
5-
version: 1.24.1
5+
version: 1.24.2
66
dependencies:
77
- name: postgresql
88
version: "13.2.2"

charts/lago/templates/api-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ spec:
8989
valueFrom:
9090
secretKeyRef:
9191
name: {{ include "secret-path" . }}
92-
key: redisUrl
92+
key: redisCacheUrl
9393
- name: LAGO_PDF_URL
9494
{{- $pdfHost := printf "%s-pdf-svc.%s" .Release.Name .Release.Namespace}}
9595
value: {{ printf "http://%s:%v" $pdfHost .Values.pdf.service.port | quote }}

charts/lago/templates/billing-worker-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ spec:
7272
valueFrom:
7373
secretKeyRef:
7474
name: {{ include "secret-path" . }}
75-
key: redisUrl
75+
key: redisCacheUrl
7676
- name: LAGO_PDF_URL
7777
{{- $pdfHost := printf "%s-pdf-svc.%s" .Release.Name .Release.Namespace }}
7878
value: {{ printf "http://%s:%v" $pdfHost .Values.pdf.service.port | quote }}

charts/lago/templates/clock-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ spec:
7171
valueFrom:
7272
secretKeyRef:
7373
name: {{ include "secret-path" . }}
74-
key: redisUrl
74+
key: redisCacheUrl
7575
- name: RAILS_LOG_TO_STDOUT
7676
value: {{ .Values.clock.rails.logStdout | quote }}
7777
- name: LAGO_RSA_PRIVATE_KEY

charts/lago/templates/clock-worker-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ spec:
7272
valueFrom:
7373
secretKeyRef:
7474
name: {{ include "secret-path" . }}
75-
key: redisUrl
75+
key: redisCacheUrl
7676
- name: LAGO_PDF_URL
7777
{{- $pdfHost := printf "%s-pdf-svc.%s" .Release.Name .Release.Namespace }}
7878
value: {{ printf "http://%s:%v" $pdfHost .Values.pdf.service.port | quote }}

charts/lago/templates/events-worker-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ spec:
7171
valueFrom:
7272
secretKeyRef:
7373
name: {{ include "secret-path" . }}
74-
key: redisUrl
74+
key: redisCacheUrl
7575
- name: RAILS_LOG_TO_STDOUT
7676
value: {{ .Values.eventsWorker.rails.logStdout | quote }}
7777
- name: LAGO_RSA_PRIVATE_KEY

charts/lago/templates/payment-worker-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ spec:
7272
valueFrom:
7373
secretKeyRef:
7474
name: {{ include "secret-path" . }}
75-
key: redisUrl
75+
key: redisCacheUrl
7676
- name: LAGO_PDF_URL
7777
{{- $pdfHost := printf "%s-pdf-svc.%s" .Release.Name .Release.Namespace }}
7878
value: {{ printf "http://%s:%v" $pdfHost .Values.pdf.service.port | quote }}

charts/lago/templates/pdf-worker-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ spec:
7272
valueFrom:
7373
secretKeyRef:
7474
name: {{ include "secret-path" . }}
75-
key: redisUrl
75+
key: redisCacheUrl
7676
- name: LAGO_PDF_URL
7777
{{- $pdfHost := printf "%s-pdf-svc.%s" .Release.Name .Release.Namespace }}
7878
value: {{ printf "http://%s:%v" $pdfHost .Values.pdf.service.port | quote }}

charts/lago/templates/secrets.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,14 @@ data:
4444
{{ if .Values.redis.enabled }}
4545
{{ $redisHost := printf "%s-redis-master.%s" .Release.Name .Release.Namespace }}
4646
redisUrl: {{ printf "redis://%s:%v" $redisHost .Values.redis.master.service.ports.redis | b64enc | quote }}
47+
redisCacheUrl: {{ printf "redis://%s:%v" $redisHost .Values.redis.master.service.ports.redis | b64enc | quote }}
4748
{{ else }}
4849
redisUrl: {{ required "global.redisUrl value is required" .Values.global.redisUrl | b64enc | quote }}
50+
{{ if .Values.global.redisCacheUrl }}
51+
redisCacheUrl: {{ .Values.global.redisCacheUrl | b64enc | quote }}
52+
{{ else }}
53+
redisCacheUrl: {{ .Values.global.redisUrl | b64enc | quote }}
54+
{{ end }}
4955
{{ end }}
5056
{{- end }}
5157

charts/lago/templates/webhook-worker-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ spec:
7272
valueFrom:
7373
secretKeyRef:
7474
name: {{ include "secret-path" . }}
75-
key: redisUrl
75+
key: redisCacheUrl
7676
- name: RAILS_LOG_TO_STDOUT
7777
value: {{ .Values.webhookWorker.rails.logStdout | quote }}
7878
- name: LAGO_RSA_PRIVATE_KEY

0 commit comments

Comments
 (0)