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

Loading…
Cancel
Save