Skip to content

Commit

Permalink
Fix terraria chart + read only root file system for terre
Browse files Browse the repository at this point in the history
  • Loading branch information
Cybermaxke committed Oct 18, 2021
1 parent af11a70 commit 58ff75c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/terraria/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: v2
name: terraria
description: A Helm chart for Terraria
type: application
version: 0.1.6
version: 0.1.7
appVersion: "1.4.2.3"
icon: https://terraria.org/static/media/logo.734118ae.png
4 changes: 4 additions & 0 deletions charts/terraria/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ metadata:
{{- include "terraria.namespace" . | nindent 2 }}
labels:
{{- include "terraria.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
9 changes: 6 additions & 3 deletions charts/terraria/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,12 @@ rbac:
# Specifies whether RBAC resources should be created
create: true

# Service account
serviceAccount:
# Specifies whether a ServiceAccount should be created
# Specifies whether a service account should be created
create: true
# The name of the ServiceAccount to use
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: null
name: ""
2 changes: 1 addition & 1 deletion charts/terre/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: terre
description: A Helm chart for Terre
type: application
version: 0.1.0
version: 0.1.1
appVersion: "latest"
6 changes: 5 additions & 1 deletion charts/terre/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
volumes:
- name: tmp
emptyDir: {}
- name: logs
emptyDir: {}
- name: plugins
Expand All @@ -43,10 +45,12 @@ spec:
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: false
readOnlyRootFilesystem: false
readOnlyRootFilesystem: true
image: "{{ tpl .Values.image.terre.repository . }}:{{ tpl .Values.image.terre.tag . }}"
imagePullPolicy: {{ default .Values.image.pullPolicy .Values.image.terre.pullPolicy }}
volumeMounts:
- name: tmp
mountPath: /tmp
- name: logs
mountPath: /logs
- name: plugins
Expand Down

0 comments on commit 58ff75c

Please sign in to comment.