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 }}