Add support for logs directory in paperless-ai chart
All checks were successful
Build Helm Chart / helm-package (push) Successful in 5s

This commit introduces a new volume mount for a logs directory in the
paperless-ai Helm chart. The deployment configuration is updated to
include a `logs-dir` volume that is mounted at `/app/logs`, allowing
for the collection and management of logs generated by the application.
Additionally, the version of the chart has been incremented to
`0.1.4-test1` to reflect this change.

The build workflow is also modified to trigger on pushes to the
`patch-paperless-ai` branch, ensuring that changes can be tested
separately from the main branch. These adjustments enhance
observability and facilitate better troubleshooting by storing logs
in a dedicated directory. No breaking changes are introduced.
This commit is contained in:
2025-11-25 13:51:44 +01:00
parent f09df7388e
commit 2d67af32a2
3 changed files with 10 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ on:
push:
branches:
- main
- patch-papaerless-ai
paths:
- "charts/paperless-ai/Chart.yaml"

View File

@@ -1,7 +1,7 @@
apiVersion: v2
name: paperless-ai
description: Ein Helm Chart für Paperless AI, basierend auf der Docker Compose Konfiguration.
version: 0.1.4
version: 0.1.4-test1
appVersion: 3.0.9
keywords:
- paperless-ai

View File

@@ -53,8 +53,10 @@ spec:
- name: {{ $key }} # Name der Umgebungsvariable.
value: {{ $value | quote }} # Wert der Umgebungsvariable.
{{- end }}
{{- if .Values.persistence.enabled }}
volumeMounts:
- name: logs-dir
mountPath: /app/logs
{{- if .Values.persistence.enabled }}
- name: paperless-ai-data # Name des Volumes, das gemountet werden soll.
mountPath: /app/data # Der Pfad im Container, an dem das Volume gemountet wird.
{{- end }}
@@ -72,8 +74,12 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }} # Toleranzen für die Pod-Platzierung auf Tainted Nodes.
{{- end }}
{{- if .Values.persistence.enabled }}
volumes:
- name: logs-dir
emptyDir:
sizeLimit: 100Mi
{{- if .Values.persistence.enabled }}
- name: paperless-ai-data # Definiert ein Volume mit dem Namen 'paperless-ai-data'.
persistentVolumeClaim:
claimName: {{ include "paperless-ai.fullname" . }}-data # Verweist auf den Persistent Volume Claim.