Skip to content

Commit

Permalink
refs coder#914: Add an initContainer to fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
paolomainardi committed Aug 18, 2019
1 parent 6ed1a15 commit ceb759d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deployment/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ spec:
{{- if .Values.hostnameOverride }}
hostname: {{ .Values.hostnameOverride }}
{{- end }}
initContainers:
- name: permissions
image: busybox:latest
imagePullPolicy: IfNotPresent
command: ["/bin/sh"]
args: ["-c", "chown -R 1000:1000 /home/coder"]
volumeMounts:
- name: data
mountPath: /home/coder
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down

0 comments on commit ceb759d

Please sign in to comment.