From b8b0d99d13c77a6bc75cbff3f54a38f897bf4ddf Mon Sep 17 00:00:00 2001 From: Simon Beck Date: Sun, 12 Oct 2025 11:08:31 +0200 Subject: [PATCH] Properly disable Tika Previously, setting `tika.enabled: false` broke the opencloud deployment because the env vars are hard-coded into the deployment. If the Tika service is not available during the startup of the opencloud deployment, then it will simply crashloop. --- charts/opencloud/templates/opencloud/deployment.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/opencloud/templates/opencloud/deployment.yaml b/charts/opencloud/templates/opencloud/deployment.yaml index 46a95314..99fc194a 100644 --- a/charts/opencloud/templates/opencloud/deployment.yaml +++ b/charts/opencloud/templates/opencloud/deployment.yaml @@ -178,11 +178,13 @@ spec: value: "false" - name: OC_PASSWORD_POLICY_BANNED_PASSWORDS_LIST value: "banned-password-list.txt" + {{ if .Values.tika.enabled }} # Search settings - name: SEARCH_EXTRACTOR_TYPE value: "tika" - name: SEARCH_EXTRACTOR_TIKA_TIKA_URL value: "http://{{ include "opencloud.tika.fullname" . }}:9998" + {{ end }} # Performance settings - name: OC_GRPC_MAX_RECEIVED_MESSAGE_SIZE value: "102400000" @@ -324,7 +326,7 @@ spec: {{- end }} - name: STORAGE_SYSTEM_DRIVER value: "decomposed" - + {{- if eq .Values.opencloud.storage.mode "posixfs" }} - name: STORAGE_USERS_POSIX_ROOT value: {{ .Values.opencloud.storage.posixfs.rootPath | quote }}