mirror of
https://github.com/truenas/charts.git
synced 2026-05-05 05:00:54 +08:00
* initial commit * add values * add common * yupo * root * add more opts * integer -> int * Add rest api and expand ci values * fix typo * add example file and fix typos * check if the example file exists, not the actual file * always write to the example file
68 lines
2.0 KiB
Smarty
68 lines
2.0 KiB
Smarty
{{- define "fscrawler.workload" -}}
|
|
workload:
|
|
fscrawler:
|
|
enabled: true
|
|
primary: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: {{ .Values.fscrawlerNetwork.hostNetwork }}
|
|
containers:
|
|
fscrawler:
|
|
enabled: true
|
|
primary: true
|
|
tty: true
|
|
stdin: true
|
|
command:
|
|
- fscrawler
|
|
args:
|
|
- {{ .Values.fscrawlerConfig.jobName | quote }}
|
|
- --loop
|
|
- {{ .Values.fscrawlerConfig.loop | quote }}
|
|
{{- if .Values.fscrawlerConfig.restart }}
|
|
- --restart
|
|
{{- end -}}
|
|
{{- if .Values.fscrawlerNetwork.enableRestApiService }}
|
|
- --rest
|
|
{{- end }}
|
|
imageSelector: {{ .Values.fscrawlerConfig.imageSelector }}
|
|
securityContext:
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
runAsNonRoot: false
|
|
readOnlyRootFilesystem: false
|
|
{{ with .Values.fscrawlerConfig.additionalEnvs }}
|
|
envList:
|
|
{{ range $env := . }}
|
|
- name: {{ $env.name }}
|
|
value: {{ $env.value }}
|
|
{{ end }}
|
|
{{ end }}
|
|
probes:
|
|
# Nothing to probe
|
|
liveness:
|
|
enabled: false
|
|
readiness:
|
|
enabled: false
|
|
startup:
|
|
enabled: false
|
|
initContainers:
|
|
config:
|
|
enabled: true
|
|
type: init
|
|
imageSelector: {{ .Values.fscrawlerConfig.imageSelector }}
|
|
securityContext:
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
runAsNonRoot: false
|
|
readOnlyRootFilesystem: false
|
|
command:
|
|
- /bin/sh
|
|
args:
|
|
- -c
|
|
- |
|
|
{{- $j := .Values.fscrawlerConfig.jobName }}
|
|
mkdir -p /root/.fscrawler/{{ $j }}
|
|
{{/* Copy/Overwrite an example settings file to the config directory */}}
|
|
cp -f /example/_settings.example.yaml /root/.fscrawler/{{ $j }}/_settings.example.yaml
|
|
{{- end -}}
|