diff --git a/library/ix-dev/community/paperless-ngx/Chart.lock b/library/ix-dev/community/paperless-ngx/Chart.lock index 33854cfcdd..242d17299b 100644 --- a/library/ix-dev/community/paperless-ngx/Chart.lock +++ b/library/ix-dev/community/paperless-ngx/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: common repository: file://../../../common - version: 1.1.1 -digest: sha256:a7dbe3e4d42dbcd4325776e5e01a1d630c7f185f79e7ebf22b1b9cc80f56eed7 -generated: "2023-09-12T16:52:35.658245695+03:00" + version: 1.2.1 +digest: sha256:d695592ea5213fe64453171205ca326015d02df3888a7858becc0c733b0de4c7 +generated: "2023-11-06T19:53:39.992943715+02:00" diff --git a/library/ix-dev/community/paperless-ngx/Chart.yaml b/library/ix-dev/community/paperless-ngx/Chart.yaml index 237ce96a9e..1ba5f1c862 100644 --- a/library/ix-dev/community/paperless-ngx/Chart.yaml +++ b/library/ix-dev/community/paperless-ngx/Chart.yaml @@ -3,7 +3,7 @@ description: Paperless-ngx is a document management system that transforms your annotations: title: Paperless-ngx type: application -version: 1.1.1 +version: 1.1.2 apiVersion: v2 appVersion: 1.17.4 kubeVersion: '>=1.16.0-0' @@ -14,7 +14,7 @@ maintainers: dependencies: - name: common repository: file://../../../common - version: 1.1.1 + version: 1.2.1 home: https://docs.paperless-ngx.com icon: https://media.sys.truenas.net/apps/paperless-ngx/icons/icon.svg sources: diff --git a/library/ix-dev/community/paperless-ngx/charts/common-1.1.1.tgz b/library/ix-dev/community/paperless-ngx/charts/common-1.1.1.tgz deleted file mode 100644 index d006a24fac..0000000000 Binary files a/library/ix-dev/community/paperless-ngx/charts/common-1.1.1.tgz and /dev/null differ diff --git a/library/ix-dev/community/paperless-ngx/charts/common-1.2.1.tgz b/library/ix-dev/community/paperless-ngx/charts/common-1.2.1.tgz new file mode 100644 index 0000000000..c3a30ad6c9 Binary files /dev/null and b/library/ix-dev/community/paperless-ngx/charts/common-1.2.1.tgz differ diff --git a/library/ix-dev/community/paperless-ngx/templates/_persistence.tpl b/library/ix-dev/community/paperless-ngx/templates/_persistence.tpl index 367b3fbf3a..01c2a2e2af 100644 --- a/library/ix-dev/community/paperless-ngx/templates/_persistence.tpl +++ b/library/ix-dev/community/paperless-ngx/templates/_persistence.tpl @@ -71,34 +71,8 @@ persistence: mountPath: {{ $storage.mountPath }} {{- end }} - postgresdata: - enabled: true - type: {{ .Values.paperlessStorage.pgData.type }} - datasetName: {{ .Values.paperlessStorage.pgData.datasetName | default "" }} - hostPath: {{ .Values.paperlessStorage.pgData.hostPath | default "" }} - targetSelector: - # Postgres pod - postgres: - # Postgres container - postgres: - mountPath: /var/lib/postgresql/data - # Postgres - Permissions container - # Different than the 01-permissions - permissions: - mountPath: /mnt/directories/postgres_data - postgresbackup: - enabled: true - type: {{ .Values.paperlessStorage.pgBackup.type }} - datasetName: {{ .Values.paperlessStorage.pgBackup.datasetName | default "" }} - hostPath: {{ .Values.paperlessStorage.pgBackup.hostPath | default "" }} - targetSelector: - # Postgres backup pod - postgresbackup: - # Postgres backup container - postgresbackup: - mountPath: /postgres_backup - # Postgres - Permissions container - # Different than the 01-permissions - permissions: - mountPath: /mnt/directories/postgres_backup + {{- include "ix.v1.common.app.postgresPersistence" + (dict "pgData" .Values.paperlessStorage.pgData + "pgBackup" .Values.paperlessStorage.pgBackup + ) | nindent 2 }} {{- end -}} diff --git a/library/ix-dev/community/paperless-ngx/templates/_service.tpl b/library/ix-dev/community/paperless-ngx/templates/_service.tpl index 2ad9694680..9948566299 100644 --- a/library/ix-dev/community/paperless-ngx/templates/_service.tpl +++ b/library/ix-dev/community/paperless-ngx/templates/_service.tpl @@ -25,15 +25,6 @@ service: targetPort: 6379 targetSelector: redis - postgres: - enabled: true - type: ClusterIP - targetSelector: postgres - ports: - postgres: - enabled: true - primary: true - port: 5432 - targetPort: 5432 - targetSelector: postgres + {{- include "ix.v1.common.app.postgresService" $ | nindent 2 }} + {{- end -}}