Skip to content

Commit e5a2b97

Browse files
authored
feat(ilf-app-backend): added support for redis url (#332)
This pull request adds support for configuring the Redis connection URL via a secret reference in the backend Helm chart. The main changes include introducing a new `redis_url_ref` configuration option and wiring it up so both the `server` and `worker` deployments receive the Redis URL from the referenced secret. Redis URL configuration: * Added `redis_url_ref` to the `config` section in `charts/interledger-app/backend/values.yaml` to allow specifying the secret key for the Redis connection URL. Environment variable injection: * Updated the `server` deployment to inject the `REDIS_URL` environment variable using the value from the secret referenced by `redis_url_ref`. * Updated the `worker` deployment to inject the `REDIS_URL` environment variable using the value from the secret referenced by `redis_url_ref`.
1 parent e795344 commit e5a2b97

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎charts/interledger-app/backend/values.yaml‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,13 @@ config:
158158

159159
sentry:
160160
dsn_ref: "sentryDSN"
161-
162161

163162
pti: # FIANT configuration
164163
jwk_ref: "ptiJwk"
165164
client_id_ref: "ptiClientID"
166165

166+
redis_url_ref: "redisURL"
167+
167168
server:
168169
enabled: true
169170
replicaCount: 2
@@ -396,6 +397,11 @@ server:
396397
secretKeyRef:
397398
name: '{{ include "common.fullname" . }}'
398399
key: "{{ .Values.config.admin.team_domain_ref }}"
400+
- name: REDIS_URL
401+
valueFrom:
402+
secretKeyRef:
403+
name: '{{ include "common.fullname" . }}'
404+
key: "{{ .Values.config.redis_url_ref }}"
399405
resources:
400406
requests:
401407
memory: 128Mi
@@ -677,6 +683,11 @@ worker:
677683
secretKeyRef:
678684
name: '{{ include "common.fullname" . }}'
679685
key: "{{ .Values.config.admin.team_domain_ref }}"
686+
- name: REDIS_URL
687+
valueFrom:
688+
secretKeyRef:
689+
name: '{{ include "common.fullname" . }}'
690+
key: "{{ .Values.config.redis_url_ref }}"
680691
resources:
681692
requests:
682693
memory: 128Mi

0 commit comments

Comments
 (0)