joplin - replace boilerplate with template

This commit is contained in:
Stavros kois
2023-11-06 19:47:42 +02:00
committed by Stavros Kois
parent e5ddf6694a
commit 51dfa67376
6 changed files with 10 additions and 43 deletions

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.2.0
digest: sha256:a87a6988cedfc3f8a90eb308dffaaeaa1cbd0cad31c20e15b1147084360b9ec1
generated: "2023-11-02T12:20:39.027755478+02:00"
version: 1.2.1
digest: sha256:d695592ea5213fe64453171205ca326015d02df3888a7858becc0c733b0de4c7
generated: "2023-11-06T19:46:30.510415405+02:00"

View File

@@ -15,7 +15,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.2.0
version: 1.2.1
home: https://joplinapp.org/
icon: https://media.sys.truenas.net/apps/joplin/icons/icon.png
sources:

View File

@@ -1,31 +1,7 @@
{{- define "joplin.persistence" -}}
persistence:
postgresdata:
enabled: true
type: {{ .Values.joplinStorage.pgData.type }}
datasetName: {{ .Values.joplinStorage.pgData.datasetName | default "" }}
hostPath: {{ .Values.joplinStorage.pgData.hostPath | default "" }}
targetSelector:
# Postgres pod
postgres:
# Postgres container
postgres:
mountPath: /var/lib/postgresql/data
# Postgres - Permissions container
permissions:
mountPath: /mnt/directories/postgres_data
postgresbackup:
enabled: true
type: {{ .Values.joplinStorage.pgBackup.type }}
datasetName: {{ .Values.joplinStorage.pgBackup.datasetName | default "" }}
hostPath: {{ .Values.joplinStorage.pgBackup.hostPath | default "" }}
targetSelector:
# Postgres backup pod
postgresbackup:
# Postgres backup container
postgresbackup:
mountPath: /postgres_backup
# Postgres - Permissions container
permissions:
mountPath: /mnt/directories/postgres_backup
{{- include "ix.v1.common.app.postgresPersistence"
(dict "pgData" .Values.joplinStorage.pgData
"pgBackup" .Values.joplinStorage.pgBackup
) | nindent 2 }}
{{- end -}}

View File

@@ -12,15 +12,6 @@ service:
port: {{ .Values.joplinNetwork.webPort }}
nodePort: {{ .Values.joplinNetwork.webPort }}
targetSelector: joplin
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 -}}