12345678910111213141516171819202122232425262728293031323334 |
- {{- define "fscrawler.persistence" -}}
- persistence:
- jobs:
- enabled: true
- type: {{ .Values.fscrawlerStorage.jobs.type }}
- datasetName: {{ .Values.fscrawlerStorage.jobs.datasetName | default "" }}
- hostPath: {{ .Values.fscrawlerStorage.jobs.hostPath | default "" }}
- targetSelector:
- fscrawler:
- fscrawler:
- mountPath: /root/.fscrawler
- config:
- mountPath: /root/.fscrawler
- default-config:
- enabled: true
- type: configmap
- objectName: example-config
- targetSelector:
- fscrawler:
- config:
- mountPath: /example/_settings.example.yaml
- subPath: _settings.example.yaml
- {{- range $idx, $storage := .Values.fscrawlerStorage.additionalStorages }}
- {{ printf "fscrawler-%v" (int $idx) }}:
- enabled: true
- type: {{ $storage.type }}
- datasetName: {{ $storage.datasetName | default "" }}
- hostPath: {{ $storage.hostPath | default "" }}
- targetSelector:
- fscrawler:
- fscrawler:
- mountPath: {{ $storage.mountPath }}
- {{- end }}
- {{- end -}}
|