truenas/charts

[minecraft] Game Mode setting is ignored

krin-san opened this issue · 0 comments

Steps to reproduce

  • Create a Minecraft app
  • Change "Game Mode" to "Creative"
  • Connect to the server – an actual Game Mode is Survival

Why it happens

questions.yaml requests a value for .Values.mcConfig.mode variable and ix_values.yaml sets it to survival by default, but this value is not used anywhere in _configuration.tpl. There is supposed to be a line like that:

      MODE: {{ .Values.mcConfig.mode | quote }}

Workaround

Add a custom Environment Variable: MODE.