Skip to content

Commit

Permalink
feat(media-apps): add readarr
Browse files Browse the repository at this point in the history
  • Loading branch information
pree committed Sep 17, 2023
1 parent 17247fe commit 01d3b14
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
9 changes: 9 additions & 0 deletions charts/media-apps/examples/readarr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
readarr:
enabled: true
values:
env:
TZ: "Europe/Berlin"

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

{{- define "media-apps.readarr" -}}{{- $app := unset .Values.readarr "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 @@ -76,3 +76,23 @@ prowlarr:
# prowlarr.values -- Helm values
# @default -- [upstream values](https://github.com/pree/charts/blob/master/charts/prowlarr/values.yaml)
values: {}

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

0 comments on commit 01d3b14

Please sign in to comment.