Skip to content

Commit

Permalink
feat: allow to disable config PVC in postgres setup for radarr/bazarr…
Browse files Browse the repository at this point in the history
…/sonarr/prowlarr

Signed-off-by: Ludovic Ortega <[email protected]>
  • Loading branch information
M0NsTeRRR committed Jun 23, 2024
1 parent 201c5c1 commit b512d71
Show file tree
Hide file tree
Showing 20 changed files with 57 additions and 17 deletions.
2 changes: 1 addition & 1 deletion charts/bazarr/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kubeVersion: ">=1.23.0-0"
name: bazarr
description: bazarr helm chart for Kubernetes
type: application
version: 0.3.2
version: 0.4.0
# image: ghcr.io/onedr0p/bazarr
appVersion: "1.4.3"
maintainers:
Expand Down
4 changes: 2 additions & 2 deletions charts/bazarr/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bazarr

![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.3](https://img.shields.io/badge/AppVersion-1.4.3-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: 1.4.3](https://img.shields.io/badge/AppVersion-1.4.3-informational?style=flat-square)

bazarr helm chart for Kubernetes

Expand Down Expand Up @@ -37,7 +37,7 @@ helm repo add adminafk https://helm-charts.adminafk.fr
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration |
| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"enabled":true,"name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration |
| config.persistence.accessModes | list | `["ReadWriteOnce"]` | Access modes of persistent disk |
| config.persistence.annotations | object | `{}` | Annotations for PVCs |
| config.persistence.name | string | `""` | Config name |
Expand Down
8 changes: 8 additions & 0 deletions charts/bazarr/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,27 @@ spec:
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if or .Values.config.persistence.enabled .Values.volumeMounts }}
volumeMounts:
{{- if .Values.config.persistence.enabled }}
- name: config
mountPath: /config
{{- end }}
{{- with .Values.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- if or .Values.config.persistence.enabled .Values.volumes }}
volumes:
{{- if .Values.config.persistence.enabled }}
- name: config
persistentVolumeClaim:
claimName: {{ include "bazarr.configPersistenceName" . }}
{{- end }}
{{- with .Values.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 3 additions & 1 deletion charts/bazarr/templates/persistentvolumeclaim.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.config.persistence.enabled -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand All @@ -17,4 +18,5 @@ spec:
{{- end }}
resources:
requests:
storage: "{{ .Values.config.persistence.size }}"
storage: "{{ .Values.config.persistence.size }}"
{{- end }}
1 change: 1 addition & 0 deletions charts/bazarr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ service:
# -- Creating PVC to store configuration
config:
persistence:
enabled: true
# -- Size of persistent disk
size: 5Gi
# -- Annotations for PVCs
Expand Down
2 changes: 1 addition & 1 deletion charts/prowlarr/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kubeVersion: ">=1.23.0-0"
name: prowlarr
description: prowlarr helm chart for Kubernetes
type: application
version: 0.3.2
version: 0.4.0
# image: ghcr.io/onedr0p/prowlarr
appVersion: "1.18.0"
maintainers:
Expand Down
4 changes: 2 additions & 2 deletions charts/prowlarr/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# prowlarr

![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.18.0](https://img.shields.io/badge/AppVersion-1.18.0-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: 1.18.0](https://img.shields.io/badge/AppVersion-1.18.0-informational?style=flat-square)

prowlarr helm chart for Kubernetes

Expand Down Expand Up @@ -37,7 +37,7 @@ helm repo add adminafk https://helm-charts.adminafk.fr
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration |
| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"enabled":true,"name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration |
| config.persistence.accessModes | list | `["ReadWriteOnce"]` | Access modes of persistent disk |
| config.persistence.annotations | object | `{}` | Annotations for PVCs |
| config.persistence.name | string | `""` | Config name |
Expand Down
4 changes: 4 additions & 0 deletions charts/prowlarr/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,17 @@ spec:
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.config.persistence.enabled }}
volumeMounts:
- name: config
mountPath: /config
{{- end }}
{{- if .Values.config.persistence.enabled }}
volumes:
- name: config
persistentVolumeClaim:
claimName: {{ include "prowlarr.configPersistenceName" . }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 3 additions & 1 deletion charts/prowlarr/templates/persistentvolumeclaim.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.config.persistence.enabled -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand All @@ -17,4 +18,5 @@ spec:
{{- end }}
resources:
requests:
storage: "{{ .Values.config.persistence.size }}"
storage: "{{ .Values.config.persistence.size }}"
{{- end }}
1 change: 1 addition & 0 deletions charts/prowlarr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ service:
# -- Creating PVC to store configuration
config:
persistence:
enabled: true
# -- Size of persistent disk
size: 5Gi
# -- Annotations for PVCs
Expand Down
4 changes: 2 additions & 2 deletions charts/radarr/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ kubeVersion: ">=1.23.0-0"
name: radarr
description: radarr helm chart for Kubernetes
type: application
version: 0.3.1
version: 0.4.0
# image: ghcr.io/onedr0p/radarr
appVersion: "5.6.0"
appVersion: "5.7.0"
maintainers:
- name: Ludovic Ortega
email: [email protected]
Expand Down
4 changes: 2 additions & 2 deletions charts/radarr/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# radarr

![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 5.6.0](https://img.shields.io/badge/AppVersion-5.6.0-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: 5.7.0](https://img.shields.io/badge/AppVersion-5.7.0-informational?style=flat-square)

radarr helm chart for Kubernetes

Expand Down Expand Up @@ -37,7 +37,7 @@ helm repo add adminafk https://helm-charts.adminafk.fr
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration |
| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"enabled":true,"name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration |
| config.persistence.accessModes | list | `["ReadWriteOnce"]` | Access modes of persistent disk |
| config.persistence.annotations | object | `{}` | Annotations for PVCs |
| config.persistence.name | string | `""` | Config name |
Expand Down
8 changes: 8 additions & 0 deletions charts/radarr/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,27 @@ spec:
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if or .Values.config.persistence.enabled .Values.volumeMounts }}
volumeMounts:
{{- if .Values.config.persistence.enabled }}
- name: config
mountPath: /config
{{- end }}
{{- with .Values.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- if or .Values.config.persistence.enabled .Values.volumes }}
volumes:
{{- if .Values.config.persistence.enabled }}
- name: config
persistentVolumeClaim:
claimName: {{ include "radarr.configPersistenceName" . }}
{{- end }}
{{- with .Values.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 3 additions & 1 deletion charts/radarr/templates/persistentvolumeclaim.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.config.persistence.enabled -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand All @@ -17,4 +18,5 @@ spec:
{{- end }}
resources:
requests:
storage: "{{ .Values.config.persistence.size }}"
storage: "{{ .Values.config.persistence.size }}"
{{- end }}
1 change: 1 addition & 0 deletions charts/radarr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ service:
# -- Creating PVC to store configuration
config:
persistence:
enabled: true
# -- Size of persistent disk
size: 5Gi
# -- Annotations for PVCs
Expand Down
2 changes: 1 addition & 1 deletion charts/sonarr/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kubeVersion: ">=1.23.0-0"
name: sonarr
description: sonarr helm chart for Kubernetes
type: application
version: 0.3.2
version: 0.4.0
# image: ghcr.io/onedr0p/sonarr
appVersion: "4.0.5"
maintainers:
Expand Down
4 changes: 2 additions & 2 deletions charts/sonarr/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sonarr

![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 4.0.5](https://img.shields.io/badge/AppVersion-4.0.5-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: 4.0.5](https://img.shields.io/badge/AppVersion-4.0.5-informational?style=flat-square)

sonarr helm chart for Kubernetes

Expand Down Expand Up @@ -37,7 +37,7 @@ helm repo add adminafk https://helm-charts.adminafk.fr
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration |
| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"enabled":true,"name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration |
| config.persistence.accessModes | list | `["ReadWriteOnce"]` | Access modes of persistent disk |
| config.persistence.annotations | object | `{}` | Annotations for PVCs |
| config.persistence.name | string | `""` | Config name |
Expand Down
8 changes: 8 additions & 0 deletions charts/sonarr/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,27 @@ spec:
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if or .Values.config.persistence.enabled .Values.volumeMounts }}
volumeMounts:
{{- if .Values.config.persistence.enabled }}
- name: config
mountPath: /config
{{- end }}
{{- with .Values.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- if or .Values.config.persistence.enabled .Values.volumes }}
volumes:
{{- if .Values.config.persistence.enabled }}
- name: config
persistentVolumeClaim:
claimName: {{ include "sonarr.configPersistenceName" . }}
{{- end }}
{{- with .Values.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 3 additions & 1 deletion charts/sonarr/templates/persistentvolumeclaim.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.config.persistence.enabled -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand All @@ -17,4 +18,5 @@ spec:
{{- end }}
resources:
requests:
storage: "{{ .Values.config.persistence.size }}"
storage: "{{ .Values.config.persistence.size }}"
{{- end }}
1 change: 1 addition & 0 deletions charts/sonarr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ service:
# -- Creating PVC to store configuration
config:
persistence:
enabled: true
# -- Size of persistent disk
size: 5Gi
# -- Annotations for PVCs
Expand Down

0 comments on commit b512d71

Please sign in to comment.