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) 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 }}