Files
charts/library/ix-dev/community/searxng/templates/_persistence.tpl
T
Stavros Kois 0ef9035e82 NAS-122990 / 23.10 / Add searxng to community train (#1362)
* Add `searxng` to `community` train

* add tempaltes

* add UI and metadata

* update readme

* remove non-existent option

* bump
2023-07-17 16:09:35 +03:00

35 lines
1.0 KiB
Smarty

{{- define "searxng.persistence" -}}
persistence:
config:
enabled: true
type: {{ .Values.searxngStorage.config.type }}
datasetName: {{ .Values.searxngStorage.config.datasetName | default "" }}
hostPath: {{ .Values.searxngStorage.config.hostPath | default "" }}
targetSelector:
searxng:
searxng:
mountPath: /etc/searxng
01-permissions:
mountPath: /mnt/directories/searxng
tmp:
enabled: true
type: emptyDir
targetSelector:
searxng:
searxng:
mountPath: /tmp
{{- range $idx, $storage := .Values.searxngStorage.additionalStorages }}
{{ printf "searxng-%v" (int $idx) }}:
enabled: true
type: {{ $storage.type }}
datasetName: {{ $storage.datasetName | default "" }}
hostPath: {{ $storage.hostPath | default "" }}
targetSelector:
searxng:
searxng:
mountPath: {{ $storage.mountPath }}
01-permissions:
mountPath: /mnt/directories{{ $storage.mountPath }}
{{- end }}
{{- end -}}