diff --git a/chart/enshrouded-k8s/Chart.yaml b/chart/enshrouded-k8s/Chart.yaml index 5934170..32da701 100644 --- a/chart/enshrouded-k8s/Chart.yaml +++ b/chart/enshrouded-k8s/Chart.yaml @@ -3,8 +3,8 @@ apiVersion: v2 description: A basic chart to deploy Enshrouded dedicated servers. name: enshrouded-k8s type: application -version: 0.5.0 -appVersion: "1.2.0" +version: 0.6.0 +appVersion: "1.3.1" kubeVersion: ">=1.26.0-0" sources: - https://github.com/bdelwood/enshrouded-k8s diff --git a/chart/enshrouded-k8s/README.md b/chart/enshrouded-k8s/README.md index 5a31f81..d13e93e 100644 --- a/chart/enshrouded-k8s/README.md +++ b/chart/enshrouded-k8s/README.md @@ -1,6 +1,6 @@ # enshrouded-k8s -![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.2.0](https://img.shields.io/badge/AppVersion-1.2.0-informational?style=flat-square) +![Version: 0.6.0](https://img.shields.io/badge/Version-0.6.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.1](https://img.shields.io/badge/AppVersion-1.3.1-informational?style=flat-square) A basic chart to deploy Enshrouded dedicated servers. @@ -22,6 +22,7 @@ Kubernetes: `>=1.26.0-0` | gameServer.backup.cron_expression | string | `"*/15 * * * *"` | Cron expression for backup scheduling. Defines when the backups should be triggered. The default value schedules a backup every 15 minutes. Use standard cron format. | | gameServer.backup.directory | string | `"./backup"` | Directory for backups. Supports relative and absolute paths. | | gameServer.backup.max_count | int | `0` | Number of backups to keep. When set to 0, never delete backups | +| gameServer.difficulty | string | `"Default"` | Server difficulty. Preset can be `Default \| Relaxed \| Hard \| Survival \| Custom`. Must be `Custom` to set individual server difficulty settings. Use `extraEnv` and prepend with `SERVER_GS_`. See container image [docs](https://github.com/mornedhels/enshrouded-server/blob/main/docs/SERVER_DIFFICULTY.md) for more info. | | gameServer.existingSecret | string | `""` | Name of an existing secret for the server password. | | gameServer.gameBranch | string | `"public"` | Which Steam branch to use for the game server. | | gameServer.logDir | string | `"./logs"` | Directory for logs sets logDirectory in game server config | @@ -70,4 +71,4 @@ Kubernetes: `>=1.26.0-0` | updateStrategy | object | `{"type":"Recreate"}` | Update strategy for deployments. | ---------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0) +Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) diff --git a/chart/enshrouded-k8s/templates/configmap.yaml b/chart/enshrouded-k8s/templates/configmap.yaml index 3f7a8a9..e8a826b 100644 --- a/chart/enshrouded-k8s/templates/configmap.yaml +++ b/chart/enshrouded-k8s/templates/configmap.yaml @@ -26,6 +26,7 @@ data: SERVER_ROLE_{{ $index }}_CAN_{{ upper $permission }}: true {{- end }} {{- end }} + SERVER_GS_PRESET: "{{ .Values.gameServer.difficulty }}" BOOTSTRAP_HOOK: "{{ .Values.hooks.bootstrap }}" UPDATE_PRE_HOOK: "{{ .Values.hooks.update.pre }}" UPDATE_POST_HOOK: "{{ .Values.hooks.update.post }}" diff --git a/chart/enshrouded-k8s/values.yaml b/chart/enshrouded-k8s/values.yaml index 3f99b0f..8c3e986 100644 --- a/chart/enshrouded-k8s/values.yaml +++ b/chart/enshrouded-k8s/values.yaml @@ -89,7 +89,12 @@ gameServer: # - "extend_base" # Allows the role to extend the base. # reserved_slots: 16 # The number of slots reserved for this role. # - name: "guests" # A role with no permissions - # reserved_slots: 1 + # reserved_slots: 1 + # -- Server difficulty. + # Preset can be `Default \| Relaxed \| Hard \| Survival \| Custom`. + # Must be `Custom` to set individual server difficulty settings. Use `extraEnv` and prepend with `SERVER_GS_`. + # See container image [docs](https://github.com/mornedhels/enshrouded-server/blob/main/docs/SERVER_DIFFICULTY.md) for more info. + difficulty: "Default" hooks: