Skip to content

Commit 731b0d2

Browse files
committed
[Helm] Change to helm chart to allow readOnlyFS
1 parent c4e31f4 commit 731b0d2

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: codetogether
33
description: CodeTogether is used to live share IDEs and coding sessions.
44

55
type: application
6-
version: 1.4.5
7-
appVersion: "2022.2.0"
6+
version: 1.4.6
7+
appVersion: "2022.2.1"
88
kubeVersion: ">= 1.18.0"
99

1010
icon: https://www.codetogether.com/wp-content/uploads/2020/02/codetogether-circle-128.png

helm/templates/deployment.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,14 @@ spec:
184184
value: {{ .Values.sso.jwksEndPointEnabled | quote }}
185185
{{- end }}
186186

187+
{{- if .Values.securityContext.readOnlyRootFilesystem}}
188+
volumeMounts:
189+
- mountPath: /run
190+
name: codetogether-runtime
191+
- mountPath: /tmp
192+
name: codetogether-tmp
193+
{{- end}}
194+
187195
#
188196
# Set container configuration
189197
#
@@ -222,6 +230,13 @@ spec:
222230

223231
resources:
224232
{{- toYaml .Values.resources | nindent 12 }}
233+
{{- if .Values.securityContext.readOnlyRootFilesystem}}
234+
volumes:
235+
- name: codetogether-runtime
236+
emptyDir: {}
237+
- name: codetogether-tmp
238+
emptyDir: {}
239+
{{- end }}
225240
{{- with .Values.nodeSelector }}
226241
nodeSelector:
227242
{{- toYaml . | nindent 8 }}

0 commit comments

Comments
 (0)