From 9dc9d3e71aa66a59bdc7402c8c76bf16e16e50be Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Mon, 10 Oct 2022 00:42:24 +0300 Subject: [PATCH] fix(docspell): fix dsc binary location (#4044) * fix(docspell): fix dsc binary location * Apply suggestions from code review Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * add a missing flag * hmm * whops * .. * hmm * lint * hmm! * lint * whoops * Apply suggestions from code review Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> --- charts/incubator/docspell/Chart.yaml | 2 +- charts/incubator/docspell/templates/_dsc.tpl | 10 +++++++--- charts/incubator/docspell/values.yaml | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/charts/incubator/docspell/Chart.yaml b/charts/incubator/docspell/Chart.yaml index f47fee3f71d..7822c70a9e6 100644 --- a/charts/incubator/docspell/Chart.yaml +++ b/charts/incubator/docspell/Chart.yaml @@ -28,7 +28,7 @@ sources: - https://github.com/eikek/docspell - https://docspell.org/docs/install/docker/ - https://docspell.org/docs/configure/defaults/ -version: 0.0.3 +version: 0.0.4 annotations: truecharts.org/catagories: | - productivity diff --git a/charts/incubator/docspell/templates/_dsc.tpl b/charts/incubator/docspell/templates/_dsc.tpl index 8fbfe5080f8..e3cc0c49371 100644 --- a/charts/incubator/docspell/templates/_dsc.tpl +++ b/charts/incubator/docspell/templates/_dsc.tpl @@ -12,6 +12,7 @@ volumeMounts: mountPath: /import command: - dsc + - --docspell-url - {{ printf "%v:%v" "http://localhost" .Values.service.main.ports.main.port | quote }} - watch - --recursive @@ -19,10 +20,12 @@ command: - --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 }} + - --language + - {{ .Values.dsc.language }} {{- end }} {{- if .Values.dsc.tag }} - - --tag {{ .Values.dsc.tag }} + - --tag + - {{ .Values.dsc.tag }} {{- end }} {{- if .Values.dsc.not_match_glob }} - --not-matches @@ -35,7 +38,8 @@ command: {{- if eq .Values.dsc.imported_action "delete" }} - --delete {{- else if eq .Values.dsc.imported_action "move" }} - - --move {{ .Values.persistence.import.mountPath }}/imported + - --move + - {{ .Values.persistence.import.mountPath }}/imported {{- end }} - {{ .Values.persistence.import.mountPath }}/docs {{- end -}} diff --git a/charts/incubator/docspell/values.yaml b/charts/incubator/docspell/values.yaml index 3a7bc6cb4d6..27e83452c86 100644 --- a/charts/incubator/docspell/values.yaml +++ b/charts/incubator/docspell/values.yaml @@ -10,7 +10,7 @@ joexImage: dscImage: repository: tccr.io/truecharts/docspell-dsc - tag: v0.38.0@sha256:1f2785b1314ebe7f775b27b79359e5bbb083b4757aa94e36541bdde7e940a47a + tag: v0.9.0@sha256:829b2bc83fdfddc8127baef5b1149d96dcf0d5ca93f210fcf1344899c36b400e pullPolicy: IfNotPresent args: