From 3a8d3df90f71d321c4f933d09627ea872d99216c Mon Sep 17 00:00:00 2001 From: Chris Coutinho <12901868+cbcoutinho@users.noreply.github.com> Date: Sat, 21 Sep 2024 21:34:45 +0200 Subject: [PATCH] Added initContainers to Jellyfin deployment (#26) --- charts/jellyfin/README.md | 1 + charts/jellyfin/templates/deployment.yaml | 4 ++++ charts/jellyfin/values.yaml | 3 +++ 3 files changed, 8 insertions(+) diff --git a/charts/jellyfin/README.md b/charts/jellyfin/README.md index 91214a2..9d7a540 100644 --- a/charts/jellyfin/README.md +++ b/charts/jellyfin/README.md @@ -54,6 +54,7 @@ helm install -f values.yaml |-----|------|---------|-------------| | affinity | object | `{}` | | | enableDLNA | bool | `false` | Setting this to true enables DLNA which requires the pod to be attached to the host network in order to be useful - this can break things like ingress to the service https://jellyfin.org/docs/general/networking/dlna.html | +| extraInitContainers | object | `{}` | additional init containers to run inside the pod. | | extraContainers | object | `{}` | additional sidecar containers to run inside the pod. | | extraEnvVars | list | `[]` | aditional environment variables passed to the pod | | extraPodAnnotations | object | `{}` | additional annotations applied to the pod | diff --git a/charts/jellyfin/templates/deployment.yaml b/charts/jellyfin/templates/deployment.yaml index b46de2b..c86aca9 100644 --- a/charts/jellyfin/templates/deployment.yaml +++ b/charts/jellyfin/templates/deployment.yaml @@ -113,6 +113,10 @@ spec: {{- end }} resources: {{ toYaml .Values.resources | indent 12 }} + {{- if .Values.extraInitContainers }} + initContainers: + {{- toYaml .Values.extraInitContainers | nindent 10 }} + {{- end }} volumes: - name: config {{- if .Values.persistence.config.enabled }} diff --git a/charts/jellyfin/values.yaml b/charts/jellyfin/values.yaml index 618f448..a6bacbd 100644 --- a/charts/jellyfin/values.yaml +++ b/charts/jellyfin/values.yaml @@ -121,6 +121,9 @@ extraEnvVars: [] # -- additional annotations applied to the pod extraPodAnnotations: {} +# -- additional init containers to run inside the pod. +extraInitContainers: {} + # -- additional sidecar containers to run inside the pod. extraContainers: {}