Skip to content

Commit bb15e22

Browse files
authored
Merge pull request #61 from Kariton/fix-deployment
2 parents d19bdfa + f5dd1de commit bb15e22

File tree

3 files changed

+37
-29
lines changed

3 files changed

+37
-29
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
## Changelog
22

3+
### V2.2.1
4+
5+
#### Non-Breaking Changes
6+
7+
- Correct issues in deployment when `rconAPI` and `port_fixer` are used simultaniously.
8+
- Add missing `ports` key to rconAPI container
9+
310
### V2.2.0
411

512
#### Non-Breaking Changes

charts/factorio-server-charts/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ sources:
2020
# This is the chart version. This version number should be incremented each time you make changes
2121
# to the chart and its templates, including the app version.
2222
# Versions are expected to follow Semantic Versioning (https://semver.org/)
23-
version: 2.2.0
23+
version: 2.2.1
2424

2525
# This is the version number of the application being deployed. This version number should be
2626
# incremented each time you make changes to the application. Versions are not expected to

charts/factorio-server-charts/templates/deployment.yaml

+29-28
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,35 @@ spec:
175175
value: {{ .Values.factorioServer.port | quote }}
176176
- name: RCON_PORT
177177
value: {{ .Values.factorioServer.rcon_port | quote }}
178+
{{- if .Values.rconAPI.enabled }}
179+
- name: {{ template "factorio-server-charts.fullname" . }}-rcon-api
180+
image: "{{ .Values.rconAPI.image.repository }}:{{ .Values.rconAPI.image.tag }}"
181+
imagePullPolicy: {{ .Values.rconAPI.image.pullPolicy }}
182+
livenessProbe:
183+
httpGet:
184+
path: /healthz
185+
port: rcon-api
186+
ports:
187+
- name: rcon-api
188+
containerPort: 24180
189+
protocol: TCP
190+
- containerPort: 24181
191+
protocol: TCP
192+
env:
193+
- name: FACTORIO_RCON_HOST
194+
value: "localhost"
195+
- name: FACTORIO_RCON_PORT
196+
value: {{ .Values.factorioServer.rcon_port | quote }}
197+
- name: FACTORIO_RCON_PASSWORD
198+
{{- if .Values.rcon.passwordSecret }}
199+
valueFrom:
200+
secretKeyRef:
201+
name: {{ .Values.rcon.passwordSecret }}
202+
key: rconpw
203+
{{- else }}
204+
value: {{ .Values.rcon.password | quote }}
205+
{{- end }}
206+
{{- end }}
178207
{{- if .Values.port_fixer.enabled }}
179208
- name: {{ template "factorio-server-charts.fullname" . }}-port-fixer
180209
image: "{{ .Values.port_fixer.image.repository }}:{{ .Values.port_fixer.image.tag }}"
@@ -208,34 +237,6 @@ spec:
208237
- pingpong3.factorio.com
209238
- pingpong4.factorio.com
210239
{{- end }}
211-
{{- if .Values.rconAPI.enabled }}
212-
- name: {{ template "factorio-server-charts.fullname" . }}-rcon-api
213-
image: "{{ .Values.rconAPI.image.repository }}:{{ .Values.rconAPI.image.tag }}"
214-
imagePullPolicy: {{ .Values.rconAPI.image.pullPolicy }}
215-
livenessProbe:
216-
httpGet:
217-
path: /healthz
218-
port: rcon-api
219-
- name: rcon-api
220-
containerPort: 24180
221-
protocol: TCP
222-
- containerPort: 24181
223-
protocol: TCP
224-
env:
225-
- name: FACTORIO_RCON_HOST
226-
value: "localhost"
227-
- name: FACTORIO_RCON_PORT
228-
value: {{ .Values.factorioServer.rcon_port | quote }}
229-
- name: FACTORIO_RCON_PASSWORD
230-
{{- if .Values.rcon.passwordSecret }}
231-
valueFrom:
232-
secretKeyRef:
233-
name: {{ .Values.rcon.passwordSecret }}
234-
key: rconpw
235-
{{- else }}
236-
value: {{ .Values.rcon.password | quote }}
237-
{{- end }}
238-
{{- end }}
239240
{{- if .Values.nodeSelector }}
240241
nodeSelector:
241242
{{ toYaml .Values.nodeSelector | indent 8 }}

0 commit comments

Comments
 (0)