Skip to content

Commit f76d1d0

Browse files
authored
Merge pull request #67 from SQLJames/feature/additionalENV
adding optional additional env variables for the factorio container
2 parents 03e816d + aac23ae commit f76d1d0

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Changelog
22

3+
### V2.2.4
4+
5+
#### Non-Breaking Changes
6+
7+
- Adding the option to append ENV variables to the factorio server container, fixes [Issue 66](https://github.com/SQLJames/factorio-server-charts/issues/66) and [Issue 37](https://github.com/SQLJames/factorio-server-charts/issues/37)
8+
39
### V2.2.3
410

511
#### Non-Breaking Changes

charts/factorio-server-charts/Chart.yaml

Lines changed: 1 addition & 1 deletion
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.3
23+
version: 2.2.4
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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ spec:
175175
value: {{ .Values.factorioServer.port | quote }}
176176
- name: RCON_PORT
177177
value: {{ .Values.factorioServer.rcon_port | quote }}
178+
{{- range .Values.factorioServer.env }}
179+
- name: {{ .name }}
180+
value: {{ .value | quote }}
181+
{{- end }}
178182
{{- if .Values.rconAPI.enabled }}
179183
- name: {{ template "factorio-server-charts.fullname" . }}-rcon-api
180184
image: "{{ .Values.rconAPI.image.repository }}:{{ .Values.rconAPI.image.tag }}"

charts/factorio-server-charts/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ mods:
161161
## @param factorioServer.load_latest_save Lets the game know if you want to load the latest save
162162
## @param factorioServer.port Factorio Game Server port
163163
## @param factorioServer.rcon_port Factorio Server RCON port
164+
## @param factorioServer.env Additional environment values for the Factorio Server container
164165
factorioServer:
165166
# name to use for the save file
166167
save_name: "replaceMe"
@@ -181,6 +182,10 @@ factorioServer:
181182
# this port setting is typically for internal Kubernetes configuration only, and in most cases, it does not need to be modified.
182183
# if it is necessary to change the rcon server port where you connect to it, update the "rcon.port" value accordingly.
183184
rcon_port: 27015
185+
# adding addtional environment variables to the factorio server container
186+
env: {}
187+
# - name: MY_VAR
188+
# value: "my_value"
184189

185190
import_save:
186191
# enable save importer

0 commit comments

Comments
 (0)