From c1fbda0798d9aaff4062bde400a7125edec1c96b Mon Sep 17 00:00:00 2001 From: sHa Date: Mon, 16 Mar 2026 02:31:41 +0200 Subject: [PATCH] fix: Correct YAML structure for scheduling in backup template and bump to 0.1.12 --- jellyfin/Chart.yaml | 2 +- jellyfin/templates/backup-cronjob.yaml | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/jellyfin/Chart.yaml b/jellyfin/Chart.yaml index 3c8ddd6..814dc24 100644 --- a/jellyfin/Chart.yaml +++ b/jellyfin/Chart.yaml @@ -5,5 +5,5 @@ type: application annotations: version-source: github-release:jellyfin/jellyfin version-pattern: "s|^v||" -version: 0.1.11 +version: 0.1.12 appVersion: "10.11.6" diff --git a/jellyfin/templates/backup-cronjob.yaml b/jellyfin/templates/backup-cronjob.yaml index 74cef66..bf1e12d 100644 --- a/jellyfin/templates/backup-cronjob.yaml +++ b/jellyfin/templates/backup-cronjob.yaml @@ -44,7 +44,16 @@ spec: path: {{ .Values.backup.storagePath }} type: DirectoryOrCreate restartPolicy: OnFailure - nodeSelector: {{ toYaml .Values.nodeSelector | nindent 10 }} - affinity: {{ toYaml .Values.affinity | nindent 10 }} - tolerations: {{ toYaml .Values.tolerations | nindent 10 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 10 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 10 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 10 }} + {{- end }} {{- end }}