Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Commit a603b01

Browse files
authored
make emptydir configurable (#69)
Signed-off-by: Jan Jansen <[email protected]>
1 parent 2c68871 commit a603b01

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

keydb/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: keydb
33
description: A Helm chart for KeyDB multimaster setup
44
type: application
5-
version: 0.46.2
5+
version: 0.46.3
66
keywords:
77
- keydb
88
- redis

keydb/templates/sts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ spec:
275275
path: server.sh
276276
{{- if not .Values.persistentVolume.enabled }}
277277
- name: keydb-data
278-
emptyDir: {}
278+
emptyDir: {{- toYaml .Values.persistentVolume.emptyDir | nindent 10 }}
279279
{{- end }}
280280
{{- if .Values.extraVolumes }}
281281
{{- toYaml .Values.extraVolumes | nindent 6 }}

keydb/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ persistentVolume:
162162
##
163163
# storageClass: "-"
164164

165+
# If persistentVolume is disable, use this to configure the empty dir
166+
emptyDir: {}
167+
165168
resources: {}
166169

167170
# Please read https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/#enabling-unsafe-sysctls

0 commit comments

Comments
 (0)