Skip to content

Commit a1e7c46

Browse files
committed
replace the timeouts by a generic config snippet mechanism
1 parent 7f6b598 commit a1e7c46

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

charts/docspell/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ name: docspell
33
description: A Helm chart to deploy docspell to Kubernetes
44
home: https://docspell.org/
55
type: application
6-
version: 0.0.9
6+
version: 0.0.10
77
appVersion: "0.40.0"

charts/docspell/values.yaml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ joex:
132132
# cpu: 100m
133133
# memory: 128Mi
134134
jvmOptions: []
135-
timeouts: {}
136135
config: |
137136
docspell.joex {
138137
app-id = ${HOSTNAME}
@@ -157,21 +156,11 @@ joex:
157156
}
158157
}
159158
160-
{{- if .Values.joex.timeouts }}
161-
extraction {
162-
ocr {
163-
{{- range $command, $timeout := .Values.joex.timeouts }}
164-
{{ $command }} {
165-
command {
166-
timeout = {{ $timeout | default "5 minutes" | quote }}
167-
}
168-
}
169-
{{- end }}
170-
}
171-
}
172-
{{- end }}
173-
174159
files {
175160
{{ tpl (.Values.files.config | default "" | indent 4) $ }}
176161
}
162+
{{- range $name, $snippet := .Values.joex.configSnippets }}
163+
# Snippet: {{ $name }}
164+
{{ tpl ($snippet | indent 2) $ }}
165+
{{- end }}
177166
}

0 commit comments

Comments
 (0)