Skip to content

Commit

Permalink
Add initcoontainer to create subfolders for various media types
Browse files Browse the repository at this point in the history
  • Loading branch information
Feleuxens committed Dec 9, 2023
1 parent da3119b commit 06ae599
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jellyfin/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
19 changes: 19 additions & 0 deletions jellyfin/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,25 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
# create folders in media pv for the different media types
{{- if .Values.persistence.media.enabled }}
initContainers:
- name: media-fodlers-creation
image: busybox:1.35
command:
- /bin/mkdir
args:
- -p
- /media/movies
- /media/music
- /media/shows
- /media/books
- /media/music-videos
- /media/movies-and-shows
volumesMounts:
- mountPath: /media
name: media
{{- end }}
volumes:
{{- if .Values.persistence.config.enabled }}
- name: config
Expand Down

0 comments on commit 06ae599

Please sign in to comment.