From e4b111d1d4f6dadcf4f9f9f4177dd21ca7fd9ddb Mon Sep 17 00:00:00 2001 From: liviu-vasut Date: Tue, 17 Mar 2026 14:50:56 +0200 Subject: [PATCH 1/3] mount volume in sideload container --- dev/helm/templates/deployment.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev/helm/templates/deployment.yaml b/dev/helm/templates/deployment.yaml index f817f22d2..c05de2b94 100644 --- a/dev/helm/templates/deployment.yaml +++ b/dev/helm/templates/deployment.yaml @@ -37,6 +37,10 @@ spec: args: [ "mkdir -p /wiki/data/sideload && git clone --depth=1 {{ .Values.sideload.repoURL }} /wiki/data/sideload/" ] resources: {{- toYaml .Values.sideload.resources | nindent 12 }} + {{- with .Values.volumeMounts }} + volumeMounts: + {{- toYaml . | nindent 12 }} + {{- end }} {{- end }} containers: - name: {{ .Chart.Name }} @@ -103,6 +107,8 @@ spec: {{- end }} - name: HA_ACTIVE value: {{ .Values.replicaCount | int | le 2 | quote }} + - name: OFFLINE_ACTIVE + value: {{ default false .Values.offline | quote }} {{- with .Values.extraEnvVars }} {{- toYaml . | nindent 12 }} {{- end }} From 05d377baec3b6e4d0922ed13304d14244ef4c542 Mon Sep 17 00:00:00 2001 From: liviu-vasut Date: Tue, 17 Mar 2026 14:52:02 +0200 Subject: [PATCH 2/3] Add offline configuration option to config.yml --- dev/build/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/dev/build/config.yml b/dev/build/config.yml index d9e58761a..a569d85e1 100644 --- a/dev/build/config.yml +++ b/dev/build/config.yml @@ -18,3 +18,4 @@ ssl: logLevel: $(LOG_LEVEL:info) logFormat: $(LOG_FORMAT:default) ha: $(HA_ACTIVE) +offline: $(OFFLINE_ACTIVE) From 5d9d99937ffc64fdad6fe73dce4ee4256552d8e6 Mon Sep 17 00:00:00 2001 From: liviu-vasut Date: Thu, 19 Mar 2026 08:34:52 +0200 Subject: [PATCH 3/3] Update args to clear sideload directory before cloning because data is now persisted between restarts we need to clear the directory contents before cloning to avoid 'already exists and is not an empty directory' errors. --- dev/helm/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/helm/templates/deployment.yaml b/dev/helm/templates/deployment.yaml index c05de2b94..6a1e29c51 100644 --- a/dev/helm/templates/deployment.yaml +++ b/dev/helm/templates/deployment.yaml @@ -34,7 +34,7 @@ spec: env: {{- toYaml .Values.sideload.env | nindent 12 }} command: [ "sh", "-c" ] - args: [ "mkdir -p /wiki/data/sideload && git clone --depth=1 {{ .Values.sideload.repoURL }} /wiki/data/sideload/" ] + args: [ "mkdir -p /wiki/data/sideload && rm -fr /wiki/data/sideload/* && git clone --depth=1 {{ .Values.sideload.repoURL }} /wiki/data/sideload/" ] resources: {{- toYaml .Values.sideload.resources | nindent 12 }} {{- with .Values.volumeMounts }}