* feat(docspell): add docspell * add soe mroe stuff * finish intregation * add joex into the mix * add few more * use arrays instead of comma separated * empty line * update list function * add some more * finish files * finish files * run as root for tests * use correct config for joex and add logging * add db config to joex * add schedullers * add user tasks * whoops * lower common * cleanup quest * whoops * fix port * fix port * quote ports * fix bools * commenout out few vars for now * fix secret * add some todo's * disable solr for now * dont quote lists * try comma sepa * hmhm * back to envs * re arrange a bit * comment out for now * . * add some more * add some more * try smthing * whops * again * typo * . * hmm * fix identation * hmm * almost finish server config * fix config name * fix path * hmm * nomsg * splt * mount * updates * add some more * lint * use subpath * whop * add more * comm * fix some configs * re-enabe solr * some lists * test allowed urls with wildcard in list * more lists * add more lists * fulltextsearch * add few more * add openid * enable probes on joex * unused var * fix joex probe * remove defaults, it's already defined in values. no need for duplicaets * add few mroe comments * fix joex * add dsc container * change dir * add dsc quiestions * no probes for nwo * add questions * fix config * add more questions * bit of cleanup in the gui * fix config * enable probe and adjust config * disable probes fo rnow
42 lines
1.4 KiB
Smarty
42 lines
1.4 KiB
Smarty
{{/* Define the dsc container */}}
|
|
{{- define "docspell.dsc" -}}
|
|
image: {{ .Values.dscImage.repository }}:{{ .Values.dscImage.tag }}
|
|
imagePullPolicy: {{ .Values.dscImage.pullPolicy }}
|
|
securityContext:
|
|
runAsUser: {{ .Values.podSecurityContext.runAsUser }}
|
|
runAsGroup: {{ .Values.podSecurityContext.runAsGroup }}
|
|
readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }}
|
|
runAsNonRoot: {{ .Values.securityContext.runAsNonRoot }}
|
|
volumeMounts:
|
|
- name: import
|
|
mountPath: /import
|
|
command:
|
|
- dsc
|
|
- {{ printf "%v:%v" "http://localhost" .Values.service.main.ports.main.port | quote }}
|
|
- watch
|
|
- --recursive
|
|
- --integration
|
|
- --header
|
|
- {{ printf "%v:%v" .Values.rest_server.integration_endpoint.http_header.header_name .Values.rest_server.integration_endpoint.http_header.header_value | quote }}
|
|
{{- if .Values.dsc.language }}
|
|
- --language {{ .Values.dsc.language }}
|
|
{{- end }}
|
|
{{- if .Values.dsc.tag }}
|
|
- --tag {{ .Values.dsc.tag }}
|
|
{{- end }}
|
|
{{- if .Values.dsc.not_match_glob }}
|
|
- --not-matches
|
|
- {{ .Values.dsc.not_match_glob | quote }}
|
|
{{- end }}
|
|
{{- if .Values.dsc.match_glob }}
|
|
- --matches
|
|
- {{ .Values.dsc.match_glob | quote }}
|
|
{{- end }}
|
|
{{- if eq .Values.dsc.imported_action "delete" }}
|
|
- --delete
|
|
{{- else if eq .Values.dsc.imported_action "move" }}
|
|
- --move {{ .Values.persistence.import.mountPath }}/imported
|
|
{{- end }}
|
|
- {{ .Values.persistence.import.mountPath }}/docs
|
|
{{- end -}}
|