From 02171d4c2d560b6b3a626567b82da4590d9d85ec Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Fri, 25 Jun 2021 15:04:05 -0300 Subject: [PATCH] Fix issue with plonecfg init-container --- charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml b/charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml index ed12951..e432e61 100644 --- a/charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml +++ b/charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml @@ -31,9 +31,11 @@ spec: securityContext: runAsNonRoot: false runAsUser: 0 + {{- if eq .Values.persistence.accessMode "ReadWriteMany" }} volumeMounts: - mountPath: /data name: data + {{- end }} containers: - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" name: {{ .Release.Name }}-plonecfg