Skip to content

Commit a2ee3cf

Browse files
committed
adding optional additional env variables for the factorio container
1 parent 03e816d commit a2ee3cf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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)