diff --git a/charts/media-apps/examples/readarr.yaml b/charts/media-apps/examples/readarr.yaml new file mode 100644 index 00000000..ebe936a3 --- /dev/null +++ b/charts/media-apps/examples/readarr.yaml @@ -0,0 +1,9 @@ +readarr: + enabled: true + values: + env: + TZ: "Europe/Berlin" + + persistence: + config: + enabled: true diff --git a/charts/media-apps/templates/readarr.yaml b/charts/media-apps/templates/readarr.yaml new file mode 100644 index 00000000..05ed7201 --- /dev/null +++ b/charts/media-apps/templates/readarr.yaml @@ -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 -}} diff --git a/charts/media-apps/values.yaml b/charts/media-apps/values.yaml index d53ef33e..180430d9 100644 --- a/charts/media-apps/values.yaml +++ b/charts/media-apps/values.yaml @@ -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: {} \ No newline at end of file