Skip to content

Commit 02f584c

Browse files
committed
Added support to use emptyDir volumes #19
1 parent 8129d0b commit 02f584c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

charts/cryptpad/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type: application
2121
# This is the chart version. This version number should be incremented each time you make changes
2222
# to the chart and its templates, including the app version.
2323
# Versions are expected to follow Semantic Versioning (https://semver.org/)
24-
version: 0.0.11
24+
version: 0.0.12
2525

2626
# This is the version number of the application being deployed. This version number should be
2727
# incremented each time you make changes to the application. Versions are not expected to

charts/cryptpad/templates/cryptpad.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ spec:
4646
volumeMounts:
4747
- name: cryptpad-data
4848
mountPath: /cryptpad/data
49-
{{- if .Values.persistence.cryptpad.data.existingClaim }}
49+
{{- if and .Values.persistence .Values.persistence.cryptpad.data.existingClaim }}
5050
persistentVolumeClaim:
5151
claimName: {{ tpl .Values.persistence.cryptpad.data.existingClaim $ }}
5252
{{- end }}
@@ -167,11 +167,15 @@ spec:
167167
{{- end }}
168168
{{- end }}
169169
{{- end }}
170-
{{- end }}
171-
{{- if and .Values.persistence.enabled (not .Values.workloadStateful) }}
170+
{{- else if .Values.persistence.enabled }}
172171
{{- range $dir, $dirvalues := .Values.persistence.cryptpad }}
173172
- name: cryptpad-{{ $dir }}
174173
persistentVolumeClaim:
175174
claimName: cryptpad-{{ $dir }}
176175
{{- end }}
176+
{{- else }}
177+
{{- range $dir, $dirvalues := .Values.persistence.cryptpad }}
178+
- name: cryptpad-{{ $dir }}
179+
emptyDir: {}
180+
{{- end }}
177181
{{- end }}

0 commit comments

Comments
 (0)