diff --git a/CHANGELOG.md b/CHANGELOG.md index 39d2d48..1f3e222 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/charts/factorio-server-charts/Chart.yaml b/charts/factorio-server-charts/Chart.yaml index ad9dd62..fba7fac 100644 --- a/charts/factorio-server-charts/Chart.yaml +++ b/charts/factorio-server-charts/Chart.yaml @@ -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 diff --git a/charts/factorio-server-charts/templates/deployment.yaml b/charts/factorio-server-charts/templates/deployment.yaml index d008038..39bfd56 100644 --- a/charts/factorio-server-charts/templates/deployment.yaml +++ b/charts/factorio-server-charts/templates/deployment.yaml @@ -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 }}" diff --git a/charts/factorio-server-charts/values.yaml b/charts/factorio-server-charts/values.yaml index 0a17791..cd30c0d 100644 --- a/charts/factorio-server-charts/values.yaml +++ b/charts/factorio-server-charts/values.yaml @@ -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" @@ -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