Skip to content

Commit

Permalink
Fix sharedDataFolder persisdent provide by k8s has no permission to m…
Browse files Browse the repository at this point in the history
…kdir and write.

Thanks to new2001y !

Fixes wekan/wekan#4921
  • Loading branch information
xet7 committed May 24, 2023
1 parent 6fb4e48 commit 54c11ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wekan/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ spec:
{{- end }}
spec:
serviceAccountName: {{ template "wekan.serviceAccountName" . }}
initContainers:
- name: volume-permissions
image: busybox
command: ['sh', '-c', 'chown -R 999:999 /data']
volumeMounts:
- name: shared-data-volume
mountPath: /data
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down

0 comments on commit 54c11ec

Please sign in to comment.