From 01d3b14ba5f86a8ae4347778ba42fc237614ee4a Mon Sep 17 00:00:00 2001 From: Pascal Reeb Date: Sun, 17 Sep 2023 19:19:42 +0200 Subject: [PATCH 1/3] feat(media-apps): add readarr --- charts/media-apps/examples/readarr.yaml | 9 +++++++ charts/media-apps/templates/readarr.yaml | 33 ++++++++++++++++++++++++ charts/media-apps/values.yaml | 20 ++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 charts/media-apps/examples/readarr.yaml create mode 100644 charts/media-apps/templates/readarr.yaml 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 From 80e0daf858660a68f01ec6bc4d183de0f0a63cac Mon Sep 17 00:00:00 2001 From: Pascal Reeb Date: Sun, 17 Sep 2023 19:22:08 +0200 Subject: [PATCH 2/3] chore(media-apps): update to 0.4.0 --- charts/media-apps/Chart.yaml | 4 ++-- charts/media-apps/README.md | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) 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 | From 22e4eefac2b7d0bfa6e93629213b461025e23e99 Mon Sep 17 00:00:00 2001 From: Pascal Reeb Date: Sun, 17 Sep 2023 19:25:20 +0200 Subject: [PATCH 3/3] fix new-line --- charts/media-apps/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/media-apps/values.yaml b/charts/media-apps/values.yaml index 180430d9..82108c01 100644 --- a/charts/media-apps/values.yaml +++ b/charts/media-apps/values.yaml @@ -95,4 +95,4 @@ 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 + values: {}