Skip to content

Commit

Permalink
Added volume permission hacker for codeserver
Browse files Browse the repository at this point in the history
  • Loading branch information
kopwei committed Jun 16, 2020
1 parent c13c439 commit 5fd01aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/code-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.1.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
7 changes: 7 additions & 0 deletions charts/code-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ spec:
serviceAccountName: {{ include "code-server.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
initContainers:
- name: volume-mount-hack
image: busybox
command: ["sh", "-c", "chown -R 1000:1000 /project && chmod 755 /project"]
volumeMounts:
- name: project-data
mountPath: /project
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down

0 comments on commit 5fd01aa

Please sign in to comment.