From cb5acb488d6d346620c056400cb69e3c02a03303 Mon Sep 17 00:00:00 2001 From: Edouard127 <46357922+Edouard127@users.noreply.github.com> Date: Sun, 4 Aug 2024 22:33:29 -0400 Subject: [PATCH] mc-router: Add extraServiceSpec for customizing services (#216) --- charts/mc-router/Chart.yaml | 2 +- charts/mc-router/templates/router-service.yaml | 3 +++ charts/mc-router/values.yaml | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/mc-router/Chart.yaml b/charts/mc-router/Chart.yaml index ce1990a..38bc460 100644 --- a/charts/mc-router/Chart.yaml +++ b/charts/mc-router/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: mc-router -version: 1.2.0 +version: 1.2.1 appVersion: 1.20.0 home: https://github.com/itzg/mc-router description: Routes Minecraft client connections to backend servers based upon the requested server address. diff --git a/charts/mc-router/templates/router-service.yaml b/charts/mc-router/templates/router-service.yaml index 9c72784..b0f03c8 100644 --- a/charts/mc-router/templates/router-service.yaml +++ b/charts/mc-router/templates/router-service.yaml @@ -22,3 +22,6 @@ spec: {{- end }} selector: {{- include "mc-router.selectorLabels" . | nindent 4 }} + {{- if .Values.services.extraServiceSpec }} + {{ toYaml .Values.services.extraServiceSpec | indent 4 }} + {{- end }} diff --git a/charts/mc-router/values.yaml b/charts/mc-router/values.yaml index a401a5f..9d442dc 100644 --- a/charts/mc-router/values.yaml +++ b/charts/mc-router/values.yaml @@ -69,6 +69,11 @@ services: # Service annotations # annotations: {} + # Additional service specs to be defined + # Fields set here will be added to the end of the Service spec + # Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/#ServiceSpec + extraServiceSpec: {} + resources: {} # limits: # cpu: 250m