From 158b66576ca524447cc7c8e992c357c2c451e788 Mon Sep 17 00:00:00 2001 From: Chris Coutinho <12901868+cbcoutinho@users.noreply.github.com> Date: Mon, 23 Sep 2024 10:51:20 +0200 Subject: [PATCH] Fix indentation and add image commands/args (#27) --- charts/jellyfin/templates/deployment.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/charts/jellyfin/templates/deployment.yaml b/charts/jellyfin/templates/deployment.yaml index c86aca9..84dd24c 100644 --- a/charts/jellyfin/templates/deployment.yaml +++ b/charts/jellyfin/templates/deployment.yaml @@ -35,9 +35,21 @@ spec: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + {{ if .Values.image.command }} + command: + {{- toYaml .Values.image.command | nindent 12 }} + {{- end }} + {{ if .Values.image.args }} + args: + {{- toYaml .Values.image.args | nindent 12 }} + {{- end }} {{ if .Values.extraEnvVars }} env: {{- toYaml .Values.extraEnvVars | nindent 12 }} + {{- end }} + {{ if .Values.securityContext }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} {{- end }} ports: - name: http @@ -109,13 +121,13 @@ spec: {{- toYaml .Values.extraVolumeMounts | nindent 12 }} {{- end }} {{- if .Values.extraContainers }} - {{- toYaml .Values.extraContainers | nindent 10 }} + {{- toYaml .Values.extraContainers | nindent 8 }} {{- end }} resources: {{ toYaml .Values.resources | indent 12 }} {{- if .Values.extraInitContainers }} initContainers: - {{- toYaml .Values.extraInitContainers | nindent 10 }} + {{- toYaml .Values.extraInitContainers | nindent 10 }} {{- end }} volumes: - name: config