Skip to content

Commit

Permalink
Merge pull request #439 from pree/feat/add-jellyfin
Browse files Browse the repository at this point in the history
feat(media-apps): add jellyfin
  • Loading branch information
pree authored Jan 6, 2025
2 parents 4bc1447 + f424d31 commit 659ec8d
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/media-apps/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: media-apps
description: Argo CD app-of-apps config for media applications
type: application
# version and appVersion are in sync in this chart!
version: 0.6.32
appVersion: 0.6.32
version: 0.7.0
appVersion: 0.7.0
home: https://github.com/pree/helm-charts/tree/master/charts/media-apps
sources:
- https://github.com/pree/helm-charts
Expand Down
9 changes: 8 additions & 1 deletion charts/media-apps/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# media-apps

![Version: 0.6.32](https://img.shields.io/badge/Version-0.6.32-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.6.32](https://img.shields.io/badge/AppVersion-0.6.32-informational?style=flat-square)
![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.7.0](https://img.shields.io/badge/AppVersion-0.7.0-informational?style=flat-square)

Argo CD app-of-apps config for media applications

Expand Down Expand Up @@ -33,6 +33,13 @@ Argo CD app-of-apps config for media applications
| clusterplex.repoURL | string | [repo](https://github.com/pabloromeo/clusterplex) | Repo URL |
| clusterplex.targetRevision | string | `"1.1.8"` | [clusterplex Helm chart](https://github.com/pabloromeo/clusterplex/tree/master/charts/clusterplex) |
| clusterplex.values | object | [upstream values](https://github.com/pabloromeo/clusterplex/blob/master/charts/clusterplex/values.yaml) | Helm values |
| jellyfin | object | [example](./example/jellyfin.yaml) | [Jellyfin](https://github.com/jellyfin/jellyfin) |
| jellyfin.chart | string | `"jellyfin"` | Chart |
| jellyfin.destination.namespace | string | `"media-apps"` | Namespace |
| jellyfin.enabled | bool | `false` | Enable Jellyfin |
| jellyfin.repoURL | string | [repo](https://jellyfin.github.io/jellyfin-helm) | Repo URL |
| jellyfin.targetRevision | string | `"2.1.0"` | [jellyfin Helm chart](https://github.com/jellyfin/jellyfin-helm/tree/master/charts/jellyfin) |
| jellyfin.values | object | [upstream values](https://github.com/jellyfin/jellyfin-helm/blob/master/charts/jellyfin/values.yaml) | Helm values |
| nfsMount | object | `{"chart":"nfs-mount","destination":{"namespace":"media-apps"},"enabled":false,"name":"nas-media","repoURL":"https://charts.pree.dev","targetRevision":"0.1.12","values":{}}` | This is used to create a PVC for a media share via NFS |
| nfsMount.chart | string | `"nfs-mount"` | Chart |
| nfsMount.destination.namespace | string | `"media-apps"` | Namespace |
Expand Down
10 changes: 10 additions & 0 deletions charts/media-apps/examples/jellyfin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
jellyfin:
enabled: true
values:
persistence:
config:
enabled: true

media:
enabled: true
existingClaim: pvc-movies
33 changes: 33 additions & 0 deletions charts/media-apps/templates/jellyfin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{{ if .Values.jellyfin.enabled }}
{{ template "argoconfig.application" (list . "media-apps.jellyfin") }}
{{ end }}

{{- define "media-apps.jellyfin" -}}{{- $app := unset .Values.jellyfin "enabled" -}}{{- $name := default $app.namespace $app.name -}}
metadata:
name: {{ template "common.fullname" . }}-{{ $name }}
spec:
{{- if $app.project }}
project: {{ $app.project | quote }}
{{- end }}
source:
repoURL: {{ $app.repoURL | quote }}
chart: {{ $app.chart | quote }}
targetRevision: {{ $app.targetRevision | quote }}
helm:
releaseName: {{ $name | quote }}
values: |-
nameOverride: {{ $name | quote }}
{{- $app.values | toYaml | nindent 8 }}
{{- if $app.destination }}
destination:
{{ $app.destination | toYaml | nindent 4 }}
{{- end }}
{{- if $app.syncPolicy }}
syncPolicy:
{{ $app.syncPolicy | toYaml | nindent 4 }}
{{- end }}
{{- if $app.ignoreDifferences }}
ignoreDifferences:
{{ $app.ignoreDifferences | toYaml | nindent 4 }}
{{- end }}
{{- end -}}
20 changes: 20 additions & 0 deletions charts/media-apps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,23 @@ overseerr:
# overseerr.values -- Helm values
# @default -- [upstream values](https://github.com/pree/helm-charts/blob/master/charts/overseerr/values.yaml)
values: {}

# jellyfin -- [Jellyfin](https://github.com/jellyfin/jellyfin)
# @default -- [example](./example/jellyfin.yaml)
jellyfin:
# jellyfin.enabled -- Enable Jellyfin
enabled: false
name: jellyfin
destination:
# jellyfin.destination.namespace -- Namespace
namespace: "media-apps"
# jellyfin.repoURL -- Repo URL
# @default -- [repo](https://jellyfin.github.io/jellyfin-helm)
repoURL: "https://jellyfin.github.io/jellyfin-helm"
# jellyfin.chart -- Chart
chart: "jellyfin"
# jellyfin.targetRevision -- [jellyfin Helm chart](https://github.com/jellyfin/jellyfin-helm/tree/master/charts/jellyfin)
targetRevision: "2.1.0"
# jellyfin.values -- Helm values
# @default -- [upstream values](https://github.com/jellyfin/jellyfin-helm/blob/master/charts/jellyfin/values.yaml)
values: {}

0 comments on commit 659ec8d

Please sign in to comment.