Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(media-apps): add readarr #223

Merged
merged 3 commits into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.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
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.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

Expand Down Expand Up @@ -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 |
Expand Down
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: {}
Loading