_persistence.tpl 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. {{- define "searxng.persistence" -}}
  2. persistence:
  3. config:
  4. enabled: true
  5. type: {{ .Values.searxngStorage.config.type }}
  6. datasetName: {{ .Values.searxngStorage.config.datasetName | default "" }}
  7. hostPath: {{ .Values.searxngStorage.config.hostPath | default "" }}
  8. targetSelector:
  9. searxng:
  10. searxng:
  11. mountPath: /etc/searxng
  12. 01-permissions:
  13. mountPath: /mnt/directories/searxng
  14. tmp:
  15. enabled: true
  16. type: emptyDir
  17. targetSelector:
  18. searxng:
  19. searxng:
  20. mountPath: /tmp
  21. {{- range $idx, $storage := .Values.searxngStorage.additionalStorages }}
  22. {{ printf "searxng-%v" (int $idx) }}:
  23. enabled: true
  24. type: {{ $storage.type }}
  25. datasetName: {{ $storage.datasetName | default "" }}
  26. hostPath: {{ $storage.hostPath | default "" }}
  27. targetSelector:
  28. searxng:
  29. searxng:
  30. mountPath: {{ $storage.mountPath }}
  31. 01-permissions:
  32. mountPath: /mnt/directories{{ $storage.mountPath }}
  33. {{- end }}
  34. {{- end -}}