_persistence.tpl 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. {{- define "fscrawler.persistence" -}}
  2. persistence:
  3. jobs:
  4. enabled: true
  5. type: {{ .Values.fscrawlerStorage.jobs.type }}
  6. datasetName: {{ .Values.fscrawlerStorage.jobs.datasetName | default "" }}
  7. hostPath: {{ .Values.fscrawlerStorage.jobs.hostPath | default "" }}
  8. targetSelector:
  9. fscrawler:
  10. fscrawler:
  11. mountPath: /root/.fscrawler
  12. config:
  13. mountPath: /root/.fscrawler
  14. default-config:
  15. enabled: true
  16. type: configmap
  17. objectName: example-config
  18. targetSelector:
  19. fscrawler:
  20. config:
  21. mountPath: /example/_settings.example.yaml
  22. subPath: _settings.example.yaml
  23. {{- range $idx, $storage := .Values.fscrawlerStorage.additionalStorages }}
  24. {{ printf "fscrawler-%v" (int $idx) }}:
  25. enabled: true
  26. type: {{ $storage.type }}
  27. datasetName: {{ $storage.datasetName | default "" }}
  28. hostPath: {{ $storage.hostPath | default "" }}
  29. targetSelector:
  30. fscrawler:
  31. fscrawler:
  32. mountPath: {{ $storage.mountPath }}
  33. {{- end }}
  34. {{- end -}}