Browse Source

Fix plonecfg job for readwriteonce volumes

master
Fábio Kaiser Rauber 4 years ago
parent
commit
9be926c436
  1. 9
      charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml

9
charts/portalmodelo/v0.5.0/templates/plonecfg-job.yaml

@ -9,9 +9,8 @@ spec:
template:
metadata:
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-weight": "-1"
"helm.sh/resource-policy": "keep"
labels:
{{- include "portalmodelo.ploneSelectorLabels" . | nindent 8 }}
spec:
@ -41,7 +40,11 @@ spec:
command: [ "/configure.sh" ]
env:
- name: ZEO_ADDRESS
{{- if .Values.instance.zeoclient }}
value: {{ template "portalmodelo.fullname" . }}-zeoserver:8100
{{- else }}
value: ""
{{- end }}
- name: EMAIL
value: {{ .Values.portal.adminEmail }}
- name: PASSWORD
@ -56,6 +59,7 @@ spec:
value: {{ .Values.portal.rootPassword }}
- name: TZ
value: {{ .Values.portal.timeZone }}
{{- if eq .Values.persistence.accessMode "ReadWriteMany" }}
volumeMounts:
- mountPath: /data
name: data
@ -66,3 +70,4 @@ spec:
claimName: data
{{- end }}
{{- end }}
{{- end }}

Loading…
Cancel
Save