Browse Source

PloneCfg must have permission to write to data volume

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

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

@ -23,6 +23,19 @@ spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
restartPolicy: Never
initContainers:
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
name: {{ .Release.Name }}-chownplone
command:
- "chown"
- "plone:plone"
- "/data"
securityContext:
runAsNonRoot: false
runAsUser: 0
volumeMounts:
- mountPath: /data
name: data
containers:
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
name: {{ .Release.Name }}-plonecfg

Loading…
Cancel
Save