diff --git a/charts/media-apps/Chart.yaml b/charts/media-apps/Chart.yaml index e5afcd9f..4027be7d 100644 --- a/charts/media-apps/Chart.yaml +++ b/charts/media-apps/Chart.yaml @@ -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.3.42 -appVersion: 0.3.42 +version: 0.4.0 +appVersion: 0.4.0 home: https://git.reeb.io/pree/helm-charts/src/branch/master/charts/media-apps sources: - https://git.reeb.io/pree/helm-charts diff --git a/charts/media-apps/README.md b/charts/media-apps/README.md index 29b80bcf..d442d561 100644 --- a/charts/media-apps/README.md +++ b/charts/media-apps/README.md @@ -1,6 +1,6 @@ # media-apps -![Version: 0.3.42](https://img.shields.io/badge/Version-0.3.42-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.3.42](https://img.shields.io/badge/AppVersion-0.3.42-informational?style=flat-square) +![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.4.0](https://img.shields.io/badge/AppVersion-0.4.0-informational?style=flat-square) Argo CD app-of-apps config for media applications @@ -47,6 +47,13 @@ Argo CD app-of-apps config for media applications | radarr.repoURL | string | [repo](https://github.com/pree/helm-charts) | Repo URL | | radarr.targetRevision | string | `"1.4.1"` | [radarr Helm chart](https://github.com/pree/helm-charts/tree/master/charts/radarr) | | radarr.values | object | [upstream values](https://github.com/pree/helm-charts/blob/master/charts/radarr/values.yaml) | Helm values | +| readarr | object | [example](./example/readarr.yaml) | [Readarr](https://github.com/Readarr/Readarr) | +| readarr.chart | string | `"readarr"` | Chart | +| readarr.destination.namespace | string | `"media-apps"` | Namespace | +| readarr.enabled | bool | `false` | Enable Readarr | +| readarr.repoURL | string | [repo](https://github.com/pree/helm-charts) | Repo URL | +| readarr.targetRevision | string | `"1.0.0"` | [readarr Helm chart](https://github.com/pree/helm-charts/tree/master/charts/readarr) | +| readarr.values | object | [upstream values](https://github.com/pree/charts/blob/master/charts/readarr/values.yaml) | Helm values | | sonarr | object | [example](./examples/sonarr.yaml) | [Sonarr](https://sonarr.tv/) | | sonarr.chart | string | `"sonarr"` | Chart | | sonarr.destination.namespace | string | `"media-apps"` | Namespace | 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..82108c01 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: {}