Skip to content

adding optional additional env variables for the factorio container #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Changelog

### V2.2.4

#### Non-Breaking Changes

- 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)

### V2.2.3

#### Non-Breaking Changes
Expand Down
2 changes: 1 addition & 1 deletion charts/factorio-server-charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ sources:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.2.3
version: 2.2.4

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 4 additions & 0 deletions charts/factorio-server-charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ spec:
value: {{ .Values.factorioServer.port | quote }}
- name: RCON_PORT
value: {{ .Values.factorioServer.rcon_port | quote }}
{{- range .Values.factorioServer.env }}
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
{{- if .Values.rconAPI.enabled }}
- name: {{ template "factorio-server-charts.fullname" . }}-rcon-api
image: "{{ .Values.rconAPI.image.repository }}:{{ .Values.rconAPI.image.tag }}"
Expand Down
5 changes: 5 additions & 0 deletions charts/factorio-server-charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ mods:
## @param factorioServer.load_latest_save Lets the game know if you want to load the latest save
## @param factorioServer.port Factorio Game Server port
## @param factorioServer.rcon_port Factorio Server RCON port
## @param factorioServer.env Additional environment values for the Factorio Server container
factorioServer:
# name to use for the save file
save_name: "replaceMe"
Expand All @@ -181,6 +182,10 @@ factorioServer:
# this port setting is typically for internal Kubernetes configuration only, and in most cases, it does not need to be modified.
# if it is necessary to change the rcon server port where you connect to it, update the "rcon.port" value accordingly.
rcon_port: 27015
# adding addtional environment variables to the factorio server container
env: {}
# - name: MY_VAR
# value: "my_value"

import_save:
# enable save importer
Expand Down
Loading