Skip to content

Commit

Permalink
Merge pull request #22 from fty4/fix/volume-subpath
Browse files Browse the repository at this point in the history
fix(charts/paperless-ngx): use subPath for volumeMounts
  • Loading branch information
mvprowess authored Nov 14, 2024
2 parents 3627296 + 4c7f2d6 commit 87e17fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/paperless-ngx/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: v2
appVersion: 2.10.1
kubeVersion: ">=1.26.0-0"
name: paperless-ngx
version: 0.2.6
version: 0.2.7
dependencies:
- name: postgresql
repository: oci://registry-1.docker.io/bitnamicharts
Expand Down
2 changes: 2 additions & 0 deletions charts/paperless-ngx/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ spec:
{{- $mediaDir := .Values.paperless.data.paths.mediaRoot | default "media" }}
- name: {{ include "paperless.pv.data.name" . }}
mountPath: {{ include "paperless.paths.base" (dict "path" $dataDir) }}
subPath: data
- name: {{ include "paperless.pv.data.name" . }}
mountPath: {{ include "paperless.paths.base" (dict "path" $mediaDir) }}
subPath: media
{{- if .Values.volumeMounts }}
{{- toYaml .Values.volumeMounts | nindent 12 }}
{{- end }}
Expand Down

0 comments on commit 87e17fd

Please # to comment.