Files
chart/library/ix-dev/community/logseq/templates/_persistence.tpl
Stavros Kois 43b04156a9 add logseq to community (#1554)
* add `logsdq` to `community`

* add questions

* fix portal

* Update Chart.yaml
2023-09-22 13:46:14 +03:00

70 lines
1.5 KiB
Smarty

{{- define "logseq.persistence" -}}
persistence:
nginx:
enabled: true
type: configmap
objectName: nginx-config
defaultMode: "0600"
targetSelector:
logseq:
logseq:
mountPath: /etc/nginx/conf.d/default.conf
subPath: nginx.conf
readOnly: true
tmp:
enabled: true
type: emptyDir
targetSelector:
logseq:
logseq:
mountPath: /tmp
varcache:
enabled: true
type: emptyDir
targetSelector:
logseq:
logseq:
mountPath: /var/cache/nginx
varrun:
enabled: true
type: emptyDir
targetSelector:
logseq:
logseq:
mountPath: /var/run
{{- range $idx, $storage := .Values.logseqStorage.additionalStorages }}
{{ printf "logseq-%v" (int $idx) }}:
enabled: true
type: {{ $storage.type }}
datasetName: {{ $storage.datasetName | default "" }}
hostPath: {{ $storage.hostPath | default "" }}
targetSelector:
logseq:
logseq:
mountPath: {{ $storage.mountPath }}
{{- end -}}
{{- if .Values.logseqNetwork.certificateID }}
cert:
enabled: true
type: secret
objectName: logseq-cert
defaultMode: "0600"
items:
- key: tls.key
path: tls.key
- key: tls.crt
path: tls.crt
targetSelector:
logseq:
logseq:
mountPath: /etc/nginx/certs
readOnly: true
scaleCertificate:
logseq-cert:
enabled: true
id: {{ .Values.logseqNetwork.certificateID }}
{{- end -}}
{{- end -}}