From aa28be85e397313eb5389d7a66d6f62cbfe44df1 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Fri, 25 Jun 2021 17:11:35 -0300 Subject: [PATCH] Set SHARED_BLOB_DIR correctly on plonecfg --- charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml b/charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml index ee69a02..fe44ed7 100644 --- a/charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml +++ b/charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml @@ -42,10 +42,18 @@ spec: name: {{ .Release.Name }}-plonecfg command: [ "/configure.sh" ] env: - - name: ZEO_ADDRESS {{- if .Values.instance.zeoclient }} + - name: ZEO_ADDRESS value: {{ template "portalmodelo.fullname" . }}-zeoserver:8100 + {{- if eq .Values.persistence.accessMode "ReadWriteMany" -}} + - name: ZEO_SHARED_BLOB_DIR + value: "on" + {{- else }} + - name: ZEO_SHARED_BLOB_DIR + value: "off" + {{- end }} {{- else }} + - name: ZEO_ADDRESS value: "" {{- end }} - name: EMAIL