Skip to content

Commit 360cbf0

Browse files
author
Joseph Moukarzel
committed
feat(redis): Allow chart to deploy its own redis
1 parent 8b11a22 commit 360cbf0

5 files changed

Lines changed: 42 additions & 3 deletions

File tree

charts/plumber/Chart.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: redis
3+
repository: https://charts.bitnami.com/bitnami
4+
version: 25.3.9
5+
digest: sha256:b73bce4f620c0eb4c95400630198c7fbb2dcd542c682a924f0b52c7e611ae000
6+
generated: "2026-04-02T14:27:22.689377+02:00"

charts/plumber/Chart.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ maintainers:
1414
email: thomas@getplumber.io
1515
- name: Totara-thib
1616
email: thibaud@getplumber.io
17+
dependencies:
18+
- name: redis
19+
version: "~25"
20+
repository: https://charts.bitnami.com/bitnami
21+
condition: redis.deploy

charts/plumber/templates/deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ spec:
118118
value: "{{ $.Values.redis.custom.user }}"
119119
- name: JOBS_REDIS_SET_NAMESPACES_TTL
120120
value: "30s"
121+
121122
- name: GITLEAKS_PATH
122123
value: "/opt/gitleaks"
123124

@@ -213,7 +214,7 @@ spec:
213214
name: {{ .configMapName | default "plumber-ca-certificates" }}
214215
{{- else }}
215216
emptyDir:
216-
sizeLimit: 1Ki
217+
sizeLimit: 1Mi
217218
{{- end }}
218219
{{- end }}
219220

charts/plumber/tests/deployment_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ tests:
2020
content:
2121
name: ca-certificates
2222
emptyDir:
23-
sizeLimit: 1Ki
23+
sizeLimit: 1Mi
2424

2525
- it: Deployments should bind to an external secret if .existingSecret is set
2626
set:

charts/plumber/values.yaml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,35 @@ postgresql:
260260
# adminPasswordKey: "password"
261261
# userPasswordKey: "password"
262262

263-
# External Redis
263+
# Redis
264264
redis:
265+
# -- Set to true to deploy a Redis instance as part of this chart (via bitnami/redis sub-chart).
266+
# When false (default), Redis is treated as an external dependency and you must provide connection details below.
267+
deploy: false
268+
269+
# -- Redis architecture when deployed by this chart. Options: "standalone" or "replication".
270+
# Keep Standalone for now because we do not support replication yet.
271+
architecture: standalone
272+
273+
# Image configuration (only used when deploy is true).
274+
# Override these to pull from a private registry or mirror.
275+
# When using a non-bitnami registry, you must also set global.security.allowInsecureImages to true.
276+
# image:
277+
# registry: my-private-registry.example.com
278+
# repository: bitnami/redis
279+
# tag: "8.6.2"
280+
# pullPolicy: IfNotPresent
281+
# pullSecrets:
282+
# - my-registry-secret
283+
284+
# Persistence for deployed Redis (only used when deploy is true).
285+
# Disabled by default — Redis is used as a cache/queue, data loss on restart is acceptable.
286+
master:
287+
persistence:
288+
enabled: false
289+
290+
# Connection details for the Redis instance (used whether deployed by this chart or external).
291+
# When deploy is true and custom.host is empty, the host defaults to the sub-chart's service (<release>-redis-master).
265292
custom:
266293
host: ""
267294
user: "default"

0 commit comments

Comments
 (0)