Skip to content

Commit

Permalink
Added support to use emptyDir volumes #19
Browse files Browse the repository at this point in the history
  • Loading branch information
gsautner committed Oct 20, 2023
1 parent 8129d0b commit 02f584c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/cryptpad/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.11
version: 0.0.12

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
10 changes: 7 additions & 3 deletions charts/cryptpad/templates/cryptpad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
volumeMounts:
- name: cryptpad-data
mountPath: /cryptpad/data
{{- if .Values.persistence.cryptpad.data.existingClaim }}
{{- if and .Values.persistence .Values.persistence.cryptpad.data.existingClaim }}
persistentVolumeClaim:
claimName: {{ tpl .Values.persistence.cryptpad.data.existingClaim $ }}
{{- end }}
Expand Down Expand Up @@ -167,11 +167,15 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- if and .Values.persistence.enabled (not .Values.workloadStateful) }}
{{- else if .Values.persistence.enabled }}
{{- range $dir, $dirvalues := .Values.persistence.cryptpad }}
- name: cryptpad-{{ $dir }}
persistentVolumeClaim:
claimName: cryptpad-{{ $dir }}
{{- end }}
{{- else }}
{{- range $dir, $dirvalues := .Values.persistence.cryptpad }}
- name: cryptpad-{{ $dir }}
emptyDir: {}
{{- end }}
{{- end }}

0 comments on commit 02f584c

Please sign in to comment.