From 62869b564e501dac592e40501aea3b1159007118 Mon Sep 17 00:00:00 2001 From: Maddin <34421118+Maddin-M@users.noreply.github.com> Date: Sat, 14 Dec 2024 02:59:35 +0100 Subject: [PATCH] Add option to disable TTY (#243) --- charts/minecraft/Chart.yaml | 2 +- charts/minecraft/templates/deployment.yaml | 2 +- charts/minecraft/values.yaml | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/charts/minecraft/Chart.yaml b/charts/minecraft/Chart.yaml index c66ba93..d20ed35 100755 --- a/charts/minecraft/Chart.yaml +++ b/charts/minecraft/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: minecraft -version: 4.23.4 +version: 4.23.5 appVersion: SeeValues home: https://minecraft.net/ description: Minecraft server diff --git a/charts/minecraft/templates/deployment.yaml b/charts/minecraft/templates/deployment.yaml index 6cef679..a5bb684 100644 --- a/charts/minecraft/templates/deployment.yaml +++ b/charts/minecraft/templates/deployment.yaml @@ -72,7 +72,7 @@ spec: - name: {{ template "minecraft.fullname" . }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} - tty: true + tty: {{ default true .Values.minecraftServer.tty }} stdin: true {{- if or (.Values.lifecycle.postStart) (.Values.lifecycle.preStop)}} lifecycle: diff --git a/charts/minecraft/values.yaml b/charts/minecraft/values.yaml index 8d5afcf..6318e3e 100644 --- a/charts/minecraft/values.yaml +++ b/charts/minecraft/values.yaml @@ -365,6 +365,9 @@ minecraftServer: ## Set the externalTrafficPolicy in the Service to either Cluster or Local # externalTrafficPolicy: Cluster + ## set this to false to not have colorized logs + tty: true + extraPorts: []