@@ -9,6 +9,10 @@ metadata:
9
9
heritage : " {{ .Release.Service }}"
10
10
spec :
11
11
replicas : 1
12
+ {{- with .Values.securityContext }}
13
+ securityContext :
14
+ {{- toYaml . | nindent 4 }}
15
+ {{- end }}
12
16
selector :
13
17
matchLabels :
14
18
app : {{ template "factorio-server-charts.fullname" . }}
55
59
#sleep 100
56
60
chmod -vR 777 /factorio/configs
57
61
ls -alth /factorio
58
- {{- with .Values.securityContext }}
59
- securityContext :
62
+ {{- with .Values.podSecurityContext }}
63
+ podSecurityContext :
60
64
{{- toYaml . | nindent 12 }}
61
65
{{- end }}
62
66
volumeMounts :
86
90
- |
87
91
mkdir -p /factorio/mods
88
92
bash /scripts/mod-downloader.sh
89
- {{- with .Values.securityContext }}
90
- securityContext :
93
+ {{- with .Values.podSecurityContext }}
94
+ podSecurityContext :
91
95
{{- toYaml . | nindent 12 }}
92
96
{{- end }}
93
97
volumeMounts :
@@ -109,8 +113,8 @@ spec:
109
113
- -ec
110
114
- |
111
115
bash /scripts/save-importer.sh
112
- {{- with .Values.securityContext }}
113
- securityContext :
116
+ {{- with .Values.podSecurityContext }}
117
+ podSecurityContext :
114
118
{{- toYaml . | nindent 12 }}
115
119
{{- end }}
116
120
volumeMounts :
@@ -123,8 +127,8 @@ spec:
123
127
- name : {{ template "factorio-server-charts.fullname" . }}
124
128
image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
125
129
imagePullPolicy : {{ .Values.image.pullPolicy }}
126
- {{- with .Values.securityContext }}
127
- securityContext :
130
+ {{- with .Values.podSecurityContext }}
131
+ podSecurityContext :
128
132
{{- toYaml . | nindent 10 }}
129
133
{{- end }}
130
134
livenessProbe :
@@ -209,8 +213,8 @@ spec:
209
213
- name : {{ template "factorio-server-charts.fullname" . }}-port-fixer
210
214
image : " {{ .Values.port_fixer.image.repository }}:{{ .Values.port_fixer.image.tag }}"
211
215
imagePullPolicy : {{ .Values.port_fixer.image.pullPolicy }}
212
- {{- with .Values.securityContext }}
213
- securityContext :
216
+ {{- with .Values.podSecurityContext }}
217
+ podSecurityContext :
214
218
{{- toYaml . | nindent 10 }}
215
219
{{- end }}
216
220
command : ["/factorio-port-fixer"]
0 commit comments