From 23da842fb9e86de281769e355abf00ec3fb319a1 Mon Sep 17 00:00:00 2001 From: Jose Luis Pedrosa Date: Tue, 21 May 2024 10:29:02 +0100 Subject: [PATCH] Add PVC -> PV volume linking Signed-off-by: Jose Luis Pedrosa --- charts/bazarr/Chart.yaml | 2 +- charts/bazarr/README.md | 5 +++-- charts/bazarr/templates/persistentvolumeclaim.yaml | 3 +++ charts/bazarr/values.yaml | 3 +++ charts/jellyseerr/Chart.yaml | 2 +- charts/jellyseerr/README.md | 3 ++- charts/jellyseerr/templates/persistentvolumeclaim.yaml | 3 +++ charts/jellyseerr/values.yaml | 3 +++ charts/qbittorrent/Chart.yaml | 2 +- charts/qbittorrent/README.md | 5 +++-- charts/qbittorrent/templates/persistentvolumeclaim.yaml | 3 +++ charts/qbittorrent/values.yaml | 3 +++ 12 files changed, 29 insertions(+), 8 deletions(-) diff --git a/charts/bazarr/Chart.yaml b/charts/bazarr/Chart.yaml index 2003bc0..4e05587 100644 --- a/charts/bazarr/Chart.yaml +++ b/charts/bazarr/Chart.yaml @@ -3,7 +3,7 @@ kubeVersion: ">=1.23.0-0" name: bazarr description: bazarr helm chart for Kubernetes type: application -version: 0.2.6 +version: 0.3.0 # image: ghcr.io/onedr0p/bazarr appVersion: "1.4.2" maintainers: diff --git a/charts/bazarr/README.md b/charts/bazarr/README.md index 181018f..af5de19 100644 --- a/charts/bazarr/README.md +++ b/charts/bazarr/README.md @@ -1,6 +1,6 @@ # bazarr -![Version: 0.2.6](https://img.shields.io/badge/Version-0.2.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.2](https://img.shields.io/badge/AppVersion-1.4.2-informational?style=flat-square) +![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.2](https://img.shields.io/badge/AppVersion-1.4.2-informational?style=flat-square) bazarr helm chart for Kubernetes @@ -37,11 +37,12 @@ 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"}}` | Creating PVC to store configuration | +| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"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 | | config.persistence.size | string | `"5Gi"` | Size of persistent disk | +| config.persistence.volumeName | string | `""` | Name of the permanent volume to reference in the claim. Can be used to bind to existing volumes. | | extraEnv | list | `[]` | Environment variables to add to the bazarr pods | | extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the bazarr pods | | fullnameOverride | string | `""` | | diff --git a/charts/bazarr/templates/persistentvolumeclaim.yaml b/charts/bazarr/templates/persistentvolumeclaim.yaml index 089bc02..81e5b90 100644 --- a/charts/bazarr/templates/persistentvolumeclaim.yaml +++ b/charts/bazarr/templates/persistentvolumeclaim.yaml @@ -9,6 +9,9 @@ spec: accessModes: {{- toYaml . | nindent 4 }} {{- end }} + {{- if .Values.config.persistence.volumeName }} + volumeName: {{ .Values.config.persistence.volumeName }} + {{- end }} {{- with .Values.config.persistence.storageClass }} storageClassName: {{ if (eq "-" .) }}""{{ else }}{{ . }}{{ end }} {{- end }} diff --git a/charts/bazarr/values.yaml b/charts/bazarr/values.yaml index 90cf0ff..9880861 100644 --- a/charts/bazarr/values.yaml +++ b/charts/bazarr/values.yaml @@ -68,6 +68,9 @@ config: - ReadWriteOnce # -- Config name name: "" + # -- Name of the permanent volume to reference in the claim. + # Can be used to bind to existing volumes. + volumeName: "" ingress: enabled: false diff --git a/charts/jellyseerr/Chart.yaml b/charts/jellyseerr/Chart.yaml index 7e3bb61..c3d0a74 100644 --- a/charts/jellyseerr/Chart.yaml +++ b/charts/jellyseerr/Chart.yaml @@ -3,7 +3,7 @@ kubeVersion: ">=1.23.0-0" name: jellyseerr description: jellyseerr helm chart for Kubernetes type: application -version: 0.1.9 +version: 0.3.0 # image: fallenbagel/jellyseerr appVersion: "1.8.1" maintainers: diff --git a/charts/jellyseerr/README.md b/charts/jellyseerr/README.md index 14efad4..80ef2d0 100644 --- a/charts/jellyseerr/README.md +++ b/charts/jellyseerr/README.md @@ -1,6 +1,6 @@ # jellyseerr -![Version: 0.1.9](https://img.shields.io/badge/Version-0.1.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.8.1](https://img.shields.io/badge/AppVersion-1.8.1-informational?style=flat-square) +![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.8.1](https://img.shields.io/badge/AppVersion-1.8.1-informational?style=flat-square) jellyseerr helm chart for Kubernetes @@ -72,5 +72,6 @@ helm repo add adminafk https://helm-charts.adminafk.fr | serviceAccount.automount | bool | `true` | Automatically mount a ServiceAccount's API credentials? | | serviceAccount.create | bool | `true` | Specifies whether a service account should be created | | serviceAccount.name | string | `""` | If not set and create is true, a name is generated using the fullname template | +| serviceAccount.volumeName | string | `""` | Name of the permanent volume to reference in the claim. Can be used to bind to existing volumes. | | strategy | object | `{"type":"Recreate"}` | Deployment strategy | | tolerations | list | `[]` | | \ No newline at end of file diff --git a/charts/jellyseerr/templates/persistentvolumeclaim.yaml b/charts/jellyseerr/templates/persistentvolumeclaim.yaml index efb7703..bf0d642 100644 --- a/charts/jellyseerr/templates/persistentvolumeclaim.yaml +++ b/charts/jellyseerr/templates/persistentvolumeclaim.yaml @@ -9,6 +9,9 @@ spec: accessModes: {{- toYaml . | nindent 4 }} {{- end }} + {{- if .Values.config.persistence.volumeName }} + volumeName: {{ .Values.config.persistence.volumeName }} + {{- end }} {{- with .Values.config.persistence.storageClass }} storageClassName: {{ if (eq "-" .) }}""{{ else }}{{ . }}{{ end }} {{- end }} diff --git a/charts/jellyseerr/values.yaml b/charts/jellyseerr/values.yaml index d5c72d6..69804cf 100644 --- a/charts/jellyseerr/values.yaml +++ b/charts/jellyseerr/values.yaml @@ -31,6 +31,9 @@ serviceAccount: # -- The name of the service account to use. # -- If not set and create is true, a name is generated using the fullname template name: "" + # -- Name of the permanent volume to reference in the claim. + # Can be used to bind to existing volumes. + volumeName: "" podAnnotations: {} podLabels: {} diff --git a/charts/qbittorrent/Chart.yaml b/charts/qbittorrent/Chart.yaml index 0e875ae..afc37bb 100644 --- a/charts/qbittorrent/Chart.yaml +++ b/charts/qbittorrent/Chart.yaml @@ -3,7 +3,7 @@ kubeVersion: ">=1.23.0-0" name: qbittorrent description: qbittorrent helm chart for Kubernetes type: application -version: 0.3.7 +version: 0.4.0 # image: ghcr.io/onedr0p/qbittorrent appVersion: "4.6.4" maintainers: diff --git a/charts/qbittorrent/README.md b/charts/qbittorrent/README.md index d25b48f..b927e9f 100644 --- a/charts/qbittorrent/README.md +++ b/charts/qbittorrent/README.md @@ -1,6 +1,6 @@ # qbittorrent -![Version: 0.3.7](https://img.shields.io/badge/Version-0.3.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 4.6.4](https://img.shields.io/badge/AppVersion-4.6.4-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.6.4](https://img.shields.io/badge/AppVersion-4.6.4-informational?style=flat-square) qbittorrent helm chart for Kubernetes @@ -37,11 +37,12 @@ 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"}}` | Creating PVC to store configuration | +| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"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 | | config.persistence.size | string | `"5Gi"` | Size of persistent disk | +| config.persistence.volumeName | string | `""` | Name of the permanent volume to reference in the claim. Can be used to bind to existing volumes. | | extraEnv | list | `[]` | Environment variables to add to the qbittorrent pods | | extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the qbittorrent pods | | fullnameOverride | string | `""` | | diff --git a/charts/qbittorrent/templates/persistentvolumeclaim.yaml b/charts/qbittorrent/templates/persistentvolumeclaim.yaml index 54b687e..f300dda 100644 --- a/charts/qbittorrent/templates/persistentvolumeclaim.yaml +++ b/charts/qbittorrent/templates/persistentvolumeclaim.yaml @@ -9,6 +9,9 @@ spec: accessModes: {{- toYaml . | nindent 4 }} {{- end }} + {{- if .Values.config.persistence.volumeName }} + volumeName: {{ .Values.config.persistence.volumeName }} + {{- end }} {{- with .Values.config.persistence.storageClass }} storageClassName: {{ if (eq "-" .) }}""{{ else }}{{ . }}{{ end }} {{- end }} diff --git a/charts/qbittorrent/values.yaml b/charts/qbittorrent/values.yaml index e5d45a2..011c4e5 100644 --- a/charts/qbittorrent/values.yaml +++ b/charts/qbittorrent/values.yaml @@ -70,6 +70,9 @@ config: - ReadWriteOnce # -- Config name name: "" + # -- Name of the permanent volume to reference in the claim. + # Can be used to bind to existing volumes. + volumeName: "" ingress: enabled: false