From 50d4b839cb685a64d6718b869e3da5be00d11a6f Mon Sep 17 00:00:00 2001 From: Umbert Pensato Bosch <708948+umbertix@users.noreply.github.com> Date: Sun, 10 Mar 2024 12:44:35 +0100 Subject: [PATCH] Fix the jellyfin chart to avoid errors when using the extra Load balancer --- helm-charts/k8s-mediaserver/Chart.yaml | 4 ++-- helm-charts/k8s-mediaserver/templates/jellyfin-resources.yml | 4 +++- helm-charts/k8s-mediaserver/values.yaml | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/helm-charts/k8s-mediaserver/Chart.yaml b/helm-charts/k8s-mediaserver/Chart.yaml index aeee050..11051c1 100644 --- a/helm-charts/k8s-mediaserver/Chart.yaml +++ b/helm-charts/k8s-mediaserver/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 -appVersion: 0.10.0 +appVersion: 0.10.1 description: A Helm chart for Kubernetes mediaserver name: k8s-mediaserver type: application -version: 0.10.0 +version: 0.10.1 diff --git a/helm-charts/k8s-mediaserver/templates/jellyfin-resources.yml b/helm-charts/k8s-mediaserver/templates/jellyfin-resources.yml index e0ab68d..fc035a6 100644 --- a/helm-charts/k8s-mediaserver/templates/jellyfin-resources.yml +++ b/helm-charts/k8s-mediaserver/templates/jellyfin-resources.yml @@ -107,8 +107,10 @@ apiVersion: v1 kind: Service metadata: name: jellyfin-lb + {{- with .Values.jackett.service.extraLBAnnotations }} annotations: - {{- include .Values.jellyfin.service.extraLBService.annotations . | nindent 4 }} + {{- . | toYaml | nindent 4 }} + {{- end }} labels: {{- include "k8s-mediaserver.labels" . | nindent 4 }} spec: diff --git a/helm-charts/k8s-mediaserver/values.yaml b/helm-charts/k8s-mediaserver/values.yaml index 2056019..1f8b978 100644 --- a/helm-charts/k8s-mediaserver/values.yaml +++ b/helm-charts/k8s-mediaserver/values.yaml @@ -294,6 +294,7 @@ jellyfin: nodePort: # Defines an additional LB service, requires cloud provider service or MetalLB extraLBService: false + extraLBAnnotations: {} ingress: enabled: true annotations: {}