Skip to content

Commit

Permalink
[Helm] Change to helm chart to allow readOnlyFS
Browse files Browse the repository at this point in the history
  • Loading branch information
wgalanciak committed Jul 4, 2022
1 parent c4e31f4 commit 731b0d2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: codetogether
description: CodeTogether is used to live share IDEs and coding sessions.

type: application
version: 1.4.5
appVersion: "2022.2.0"
version: 1.4.6
appVersion: "2022.2.1"
kubeVersion: ">= 1.18.0"

icon: https://www.codetogether.com/wp-content/uploads/2020/02/codetogether-circle-128.png
Expand Down
15 changes: 15 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ spec:
value: {{ .Values.sso.jwksEndPointEnabled | quote }}
{{- end }}

{{- if .Values.securityContext.readOnlyRootFilesystem}}
volumeMounts:
- mountPath: /run
name: codetogether-runtime
- mountPath: /tmp
name: codetogether-tmp
{{- end}}

#
# Set container configuration
#
Expand Down Expand Up @@ -222,6 +230,13 @@ spec:

resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.securityContext.readOnlyRootFilesystem}}
volumes:
- name: codetogether-runtime
emptyDir: {}
- name: codetogether-tmp
emptyDir: {}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit 731b0d2

Please sign in to comment.